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

Function xs_time_delta

modules/base/time/esp/modTime.c:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void xs_time_delta(xsMachine *the)
59{
60 uint32_t start, end;
61
62 start = xsmcToUnsigned(xsArg(0));
63 if (xsmcArgc > 1)
64 end = xsmcToUnsigned(xsArg(1));
65 else
66 end = modMilliseconds();
67 xsmcSetInteger(xsResult, end - start);
68}

Callers

nothing calls this directly

Calls 1

modMillisecondsFunction · 0.85

Tested by

no test coverage detected