We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3afdc1 commit 94bfdebCopy full SHA for 94bfdeb
test/src/clock_nanosleep.c
@@ -12,9 +12,8 @@
12
t_error("%s failed (errno = %d)\n", #c, errno); \
13
} while (0)
14
15
-static void test_elapsed(struct timespec *start_time,
16
- struct timespec *end_time,
17
- long ns_to_sleep) {
+static void test_elapsed(struct timespec *start_time, struct timespec *end_time,
+ long ns_to_sleep) {
18
TEST(end_time->tv_sec - start_time->tv_sec <= 1);
19
20
long nanoseconds_elapsed = (end_time->tv_sec - start_time->tv_sec) * 1E9 -
0 commit comments