mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +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) {
|
||||
Sleep(ms);
|
||||
void sleep(size_t sec) {
|
||||
Sleep(sec * 1000UL);
|
||||
}
|
||||
|
||||
int clock_gettime(int what, struct timespec* ti) {
|
||||
|
||||
Reference in New Issue
Block a user