From ebefb2a519918bec6d3ae6dbc2c423437bdd2939 Mon Sep 17 00:00:00 2001 From: Lassi Kortela Date: Wed, 21 Aug 2019 22:12:19 +0300 Subject: [PATCH] Stub time functions for Windows Need to rethink all time stuff and read the relevant SRFIs. --- c/time_windows.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/c/time_windows.c b/c/time_windows.c index 6ad2917..d704205 100644 --- a/c/time_windows.c +++ b/c/time_windows.c @@ -1,5 +1,8 @@ #include +#include +#include + #include "timefuncs.h" #if 0 @@ -10,19 +13,11 @@ double tvals2float(struct tm *t, struct timeb *tstruct) } #endif -uint64_t i64time(void) -{ - uint64_t a; - struct timeb tstruct; - - ftime(&tstruct); - a = (((uint64_t)tstruct.time) << 32) + (uint64_t)tstruct.millitm; - return a; -} +uint64_t i64time(void) { return 0; } void sleep_ms(int ms) { - if (ms == 0) { + if (ms < 1) { return; } Sleep(ms);