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);