diff options
Diffstat (limited to 'src/util/test_scheduler_delay.c')
-rw-r--r-- | src/util/test_scheduler_delay.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/src/util/test_scheduler_delay.c b/src/util/test_scheduler_delay.c index 8ba35f5b9..a246e96a6 100644 --- a/src/util/test_scheduler_delay.c +++ b/src/util/test_scheduler_delay.c | |||
@@ -28,8 +28,6 @@ | |||
28 | #include "gnunet_scheduler_lib.h" | 28 | #include "gnunet_scheduler_lib.h" |
29 | #include "gnunet_time_lib.h" | 29 | #include "gnunet_time_lib.h" |
30 | 30 | ||
31 | #define VERBOSE GNUNET_NO | ||
32 | |||
33 | static struct GNUNET_TIME_Absolute target; | 31 | static struct GNUNET_TIME_Absolute target; |
34 | 32 | ||
35 | static int i; | 33 | static int i; |
@@ -71,9 +69,13 @@ test_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
71 | i += INCR; | 69 | i += INCR; |
72 | } | 70 | } |
73 | 71 | ||
74 | static int | 72 | |
75 | check () | 73 | int |
74 | main (int argc, char *argv[]) | ||
76 | { | 75 | { |
76 | int ret; | ||
77 | |||
78 | GNUNET_log_setup ("test-scheduler-delay", "WARNING", NULL); | ||
77 | target = GNUNET_TIME_absolute_get (); | 79 | target = GNUNET_TIME_absolute_get (); |
78 | GNUNET_SCHEDULER_run (&test_task, NULL); | 80 | GNUNET_SCHEDULER_run (&test_task, NULL); |
79 | FPRINTF (stdout, "Sleep precision: %llu ms. ", | 81 | FPRINTF (stdout, "Sleep precision: %llu ms. ", |
@@ -89,15 +91,4 @@ check () | |||
89 | return 0; | 91 | return 0; |
90 | } | 92 | } |
91 | 93 | ||
92 | int | ||
93 | main (int argc, char *argv[]) | ||
94 | { | ||
95 | int ret; | ||
96 | |||
97 | GNUNET_log_setup ("test-scheduler-delay", "WARNING", NULL); | ||
98 | ret = check (); | ||
99 | |||
100 | return ret; | ||
101 | } | ||
102 | |||
103 | /* end of test_scheduler_delay.c */ | 94 | /* end of test_scheduler_delay.c */ |