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

Function _262_agent_monotonicNow

tools/test262/_262.c:429–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429void _262_agent_monotonicNow(xsMachine* the)
430{
431 xsResult = xsNumber(fxDateNow());
432// #ifdef mxUseFreeRTOSTasks
433// TickType_t ticks = xTaskGetTickCount();
434// txNumber now = (txNumber)ticks * 1000.0 / (txNumber)configTICK_RATE_HZ;
435// xsResult = xsNumber(c_trunc(now));
436// #else
437// struct timespec now;
438// clock_gettime(CLOCK_MONOTONIC, &now);
439// xsResult = xsNumber(((txNumber)(now.tv_sec) * 1000.0) + ((txNumber)(now.tv_nsec / 1000000)));
440// #endif
441}
442
443void _262_agent_receiveBroadcast(xsMachine* the)
444{

Callers

nothing calls this directly

Calls 1

fxDateNowFunction · 0.85

Tested by

no test coverage detected