Searched refs:usec_sub (Results 1 - 3 of 3) sorted by relevance
/systemd/src/test/ |
H A D | test-time.c | 193 assert_se(usec_sub(0, 0) == 0); 194 assert_se(usec_sub(4, 1) == 3); 195 assert_se(usec_sub(4, 4) == 0); 196 assert_se(usec_sub(4, 5) == 0); 197 assert_se(usec_sub(USEC_INFINITY-3, -3) == USEC_INFINITY); 198 assert_se(usec_sub(USEC_INFINITY-3, -3) == USEC_INFINITY); 199 assert_se(usec_sub(USEC_INFINITY-3, -4) == USEC_INFINITY); 200 assert_se(usec_sub(USEC_INFINITY-3, -5) == USEC_INFINITY); 201 assert_se(usec_sub(USEC_INFINITY, 5) == USEC_INFINITY);
|
/systemd/src/basic/ |
H A D | time-util.h | 140 static inline usec_t usec_sub(usec_t timestamp, int64_t delta) { function
|
H A D | time-util.c | 82 ts->monotonic = usec_sub(now(CLOCK_MONOTONIC), delta); 98 ts->realtime = usec_sub(now(CLOCK_REALTIME), delta); 113 ts->realtime = usec_sub(ts->realtime, delta); 114 ts->monotonic = usec_sub(ts->monotonic, delta);
|
Completed in 1508 milliseconds