MCPcopy Create free account
hub / github.com/crownengine/crown / clock_gettime

Function clock_gettime

3rdparty/bx/src/crtnone.cpp:449–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449extern "C" int clock_gettime(clockid_t _clock, struct timespec* _ts)
450{
451 BX_UNUSED(_clock);
452 int64_t now = crt0::getHPCounter();
453 toTimespecNs(*_ts, now);
454 return 0;
455}
456
457extern "C" long syscall(long _num, ...)
458{

Callers 10

StartMethod · 0.85
StopMethod · 0.85
getTimeNanosecondsMethod · 0.85
waitMethod · 0.85
syscallFunction · 0.85
gettimeofdayFunction · 0.85
timeFunction · 0.85
getHPCounterFunction · 0.85
nowFunction · 0.85
waitMethod · 0.85

Calls 2

getHPCounterFunction · 0.85
toTimespecNsFunction · 0.70

Tested by

no test coverage detected