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

Function _262_agent_sleep

tools/test262/_262.c:479–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477}
478
479void _262_agent_sleep(txMachine* the)
480{
481 xsIntegerValue delay = xsToInteger(xsArg(0));
482#ifdef mxUseFreeRTOSTasks
483 vTaskDelay(pdMS_TO_TICKS(delay));
484#elif PICO_BUILD || __ZEPHYR__
485 modDelayMilliseconds(delay);
486#elif mxWindows
487 Sleep(delay);
488#else
489 usleep(delay * 1000);
490#endif
491}
492
493void _262_agent_start(txMachine* the)
494{

Callers

nothing calls this directly

Calls 1

SleepClass · 0.85

Tested by

no test coverage detected