Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/emscripten-core/emscripten
/ now
Function
now
test/pthread/test_pthread_reltime.cpp:13–17 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
11
#include <emscripten.h>
12
13
static long now() {
14
struct timespec time;
15
clock_gettime(CLOCK_MONOTONIC, &time);
16
return time.tv_sec * 1000 + time.tv_nsec / 1000 / 1000;
17
}
18
19
static long ping, pong;
20
Callers
12
thread_main
Function · 0.85
notify
Function · 0.85
__libcpp_condvar_timedwait
Function · 0.85
sleep_until
Function · 0.85
__libcpp_thread_poll_with_backoff
Function · 0.85
now
Method · 0.85
now
Method · 0.85
now
Method · 0.85
wait_until
Function · 0.85
wait_for
Function · 0.85
wait_for
Method · 0.85
__do_timed_wait
Method · 0.85
Calls
1
clock_gettime
Function · 0.50
Tested by
no test coverage detected