Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HaxeFoundation/hxcpp
/ timespec
Class
timespec
src/hx/Date.cpp:83–83 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
81
double t = ( tv.tv_sec + ((double)tv.tv_usec) / 1000000.0 );
82
#elif defined(USE_CLOCK_GETTIME)
83
struct timespec ts;
84
clock_gettime(CLOCK_MONOTONIC, &ts);
85
double t = ( ts.tv_sec + ((double)ts.tv_nsec)*1e-9 );
86
#else
Callers
1
__time_stamp_ms
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected