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

Function fxMicrosecondsToTicks

xs/sources/xsProfile.c:333–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333txU8 fxMicrosecondsToTicks(txU8 microseconds)
334{
335#if mxMacOSX
336 return microseconds * 1000;
337#elif mxWindows
338 LARGE_INTEGER frequency;
339 QueryPerformanceFrequency(&frequency);
340 return (frequency.QuadPart * microseconds) / 1000000ULL;
341#else
342 return microseconds;
343#endif
344}
345
346txProfilerRecord* fxNewProfilerRecord(txMachine* the, txID recordID)
347{

Callers 1

fxCreateProfilerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected