From fa6af27248ec1fcbfdec433ea16154b7bdae045f Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 5 Jun 2022 16:17:32 +0200 Subject: fix windows compatibility --- client/time_windows.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 client/time_windows.c (limited to 'client/time_windows.c') 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 -- cgit v1.2.3