diff options
Diffstat (limited to 'client/time.h')
-rw-r--r-- | client/time.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/client/time.h b/client/time.h new file mode 100644 index 0000000..a989c5c --- /dev/null +++ b/client/time.h @@ -0,0 +1,12 @@ +#pragma once + +/** amount of parallel timers */ +#define W2_CLIENT_TIMER_COUNT (4) +extern unsigned long g_w2_client_timers[W2_CLIENT_TIMER_COUNT]; +typedef enum { + W2_TIMER_PING = 0, + W2_TIMER_UPDATE = 1, +} w2_e_client_timers; + +void w2_timer_start(w2_e_client_timers label); +unsigned long w2_timer_end(w2_e_client_timers label); |