aboutsummaryrefslogtreecommitdiff
path: root/client/time.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-29 17:01:03 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-29 17:01:03 +0200
commit59802547c336d61aa7e950414a3f44180e211974 (patch)
treecf7107b9085ce3c93e98ec874d25e04ad2362a4c /client/time.h
parent3b2c2cf6b2af9e76b343a5a8fc8e9245f240690d (diff)
client ping working
Diffstat (limited to 'client/time.h')
-rw-r--r--client/time.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/client/time.h b/client/time.h
new file mode 100644
index 0000000..75b1f70
--- /dev/null
+++ b/client/time.h
@@ -0,0 +1,11 @@
+#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_e_client_timers;
+
+void w2_timer_start(w2_e_client_timers label);
+unsigned long w2_timer_end(w2_e_client_timers label);