MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxGetTicks

Function fxGetTicks

xs/sources/xsProfile.c:281–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281txU8 fxGetTicks()
282{
283#if mxMacOSX
284 return clock_gettime_nsec_np(CLOCK_MONOTONIC);
285#elif mxWindows
286 LARGE_INTEGER counter;
287 QueryPerformanceCounter(&counter);
288 return counter.QuadPart;
289#else
290 c_timeval tv;
291 c_gettimeofday(&tv, NULL);
292 return (tv.tv_sec * 1000000ULL) + tv.tv_usec;
293#endif
294}
295
296void fxInsertProfilerCallee(txMachine* the, txProfilerRecord* record, txID recordID)
297{

Callers 4

fxCheckProfilerFunction · 0.85
fxCreateProfilerFunction · 0.85
fxResumeProfilerFunction · 0.85
fxSuspendProfilerFunction · 0.85

Calls 1

c_gettimeofdayFunction · 0.85

Tested by

no test coverage detected