Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/emscripten-core/emscripten
/ sleep_ms
Function
sleep_ms
test/core/test_ppoll_blocking.c:27–29 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
25
#define TIMEOUT_MARGIN_MS 5
26
27
void sleep_ms(int ms) {
28
usleep(ms * 1000);
29
}
30
31
int64_t timespec_delta_ms(struct timespec* begin, struct timespec* end) {
32
int64_t delta_sec = end->tv_sec - begin->tv_sec;
Callers
2
write_after_sleep
Function · 0.70
test_ppoll_in_threads
Function · 0.70
Calls
1
usleep
Function · 0.85
Tested by
no test coverage detected