mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
Change sleep function to accept seconds instead of ms (#2139)
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user