Change sleep function to accept seconds instead of ms (#2139)

This commit is contained in:
wasabilofgu
2026-03-04 14:00:35 +08:00
committed by GitHub
parent 83fa834e1f
commit c2150ba849

View File

@@ -126,8 +126,8 @@ void usleep(size_t us) {
} }
} }
void sleep(size_t ms) { void sleep(size_t sec) {
Sleep(ms); Sleep(sec * 1000UL);
} }
int clock_gettime(int what, struct timespec* ti) { int clock_gettime(int what, struct timespec* ti) {