Added SILC Thread Queue API
[silc.git] / lib / silcutil / tests / test_silctimer.c
index f7354d3b8e1185f197c94b9e50b2f5a4349ff4a3..e0646cf7bd78a5567113121352014328456600be 100644 (file)
@@ -66,13 +66,17 @@ int main(int argc, char **argv)
     silc_log_debug(TRUE);
     silc_log_quick(TRUE);
     silc_log_debug_hexdump(TRUE);
-    silc_log_set_debug_string("*timer*");
+    silc_log_set_debug_string("*timer*,*errno*");
   }
 
   schedule = silc_schedule_init(0, NULL, NULL);
   if (!schedule)
     goto err;
 
+  silc_timer_synchronize(&timer);
+  SILC_LOG_DEBUG(("sync_diff: %d", timer.sync_diff));
+  SILC_LOG_DEBUG(("sync_tdiff: %d", timer.sync_tdiff));
+
   SILC_LOG_DEBUG(("Start timer"));
   silc_timer_start(&timer);