Added SILC Thread Queue API
[silc.git] / lib / silcutil / silctimer_i.h
index 06656e9076946ded439e6dead91f4428b746f1f6..1ecfdcdf7dd57293724a0a6d080ea23f88e859d9 100644 (file)
 #error "Do not include this header directly"
 #endif
 
+/* Timer context */
 struct SilcTimerObject {
   SilcUInt64 start_sec;                /* Start seconds */
-  SilcUInt32 start_usec;       /* Start microseconds */
   SilcUInt64 timer_sec;                /* Timer seconds */
+  SilcUInt32 start_usec;       /* Start microseconds */
   SilcUInt32 timer_usec;       /* Timer microseconds */
-  unsigned int running  : 1;   /* Set when timer is running */
+  unsigned int running    : 1; /* Set when timer is running */
+  unsigned int sync_diff  : 15;        /* Synchronization delta */
+  unsigned int sync_tdiff : 16;        /* Synchronization tick delta */
 };
 
 #endif /* SILCTIMER_I_H */