aboutsummaryrefslogtreecommitdiff
path: root/client/time_windows.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-05 16:17:32 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-05 16:17:32 +0200
commitfa6af27248ec1fcbfdec433ea16154b7bdae045f (patch)
tree235c9a780abddca59f218d08387e2b7fd1afeb0f /client/time_windows.c
parent1f8a640303976ddcc3605a9b6af8fb398dc7c300 (diff)
fix windows compatibility
Diffstat (limited to 'client/time_windows.c')
-rw-r--r--client/time_windows.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/client/time_windows.c b/client/time_windows.c
new file mode 100644
index 0000000..f9082d6
--- /dev/null
+++ b/client/time_windows.c
@@ -0,0 +1,15 @@
+#ifdef W2_HOST_WIN32
+
+#include "time.h"
+
+unsigned long w2_get_time() {
+ return 0;
+}
+
+void w2_timer_start(w2_e_client_timers label) { g_w2_client_timers[label] = w2_get_time(); }
+
+unsigned long w2_timer_end(w2_e_client_timers label) {
+ return w2_get_time() - g_w2_client_timers[label];
+}
+
+#endif