MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / sleep_ms

Function sleep_ms

test/core/test_pselect_blocking.c:28–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#define TIMEOUT_MARGIN_MS 5
27
28void sleep_ms(int ms) {
29 usleep(ms * 1000);
30}
31
32int64_t timespec_delta_ms(struct timespec* begin, struct timespec* end) {
33 int64_t delta_sec = end->tv_sec - begin->tv_sec;

Callers 2

write_after_sleepFunction · 0.70
test_pselect_in_threadsFunction · 0.70

Calls 1

usleepFunction · 0.85

Tested by

no test coverage detected