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

Function fxGetMicroSeconds

xs/sources/xsDebug.c:3369–3380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3367}
3368
3369txMicroseconds fxGetMicroSeconds()
3370{
3371#if defined(modMicrosecondsInstrumentation)
3372 return modMicrosecondsInstrumentation();
3373#elif defined(modMicroseconds)
3374 return modMicroseconds();
3375#else
3376 c_timeval tv;
3377 c_gettimeofday(&tv, NULL);
3378 return (tv.tv_sec * 1000000ULL) + tv.tv_usec;
3379#endif
3380}
3381
3382void fxResumeProfiler(txMachine* the)
3383{

Callers 5

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

Calls 1

c_gettimeofdayFunction · 0.85

Tested by

no test coverage detected