purrforce/ms_sleep.c

15 lines
250 B
C
Raw Permalink Normal View History

2024-03-26 06:31:37 +00:00
#ifdef _MSC_VER
#include <Windows.h>
void ms_sleep(unsigned ms) {
Sleep(ms);
}
unsigned gettime_ms(void){
SYSTEMTIME st;
FILETIME ft={0,0};
GetSystemTime(&st);
SystemTimeToFileTime(&st,&ft);
return ft.dwLowDateTime;
}
#endif