5 Author: Pekka Riikonen <priikone@silcnet.org>
7 Copyright (C) 2007 Pekka Riikonen
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; version 2 of the License.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
24 #error "Do not include this header directly"
28 struct SilcTimerObject {
29 SilcUInt64 start_sec; /* Start seconds */
30 SilcUInt64 timer_sec; /* Timer seconds */
31 SilcUInt32 start_usec; /* Start microseconds */
32 SilcUInt32 timer_usec; /* Timer microseconds */
33 unsigned int running : 1; /* Set when timer is running */
34 unsigned int sync_diff : 15; /* Synchronization delta */
35 unsigned int sync_tdiff : 16; /* Synchronization tick delta */
38 #endif /* SILCTIMER_I_H */