MCPcopy Create free account
hub / github.com/FastLED/FastLED / getTimeSinceEpoc

Function getTimeSinceEpoc

src/platforms/wasm/compiler/index.ts:284–289  ·  view source on GitHub ↗

* Gets elapsed time since application start * @returns {string} Time in seconds with one decimal place

()

Source from the content-addressed store, hash-verified

282 * @returns {string} Time in seconds with one decimal place
283 */
284function getTimeSinceEpoc() {
285 const outMS = new Date().getTime() - EPOCH;
286 const outSec = outMS / 1000;
287 // one decimal place
288 return outSec.toFixed(1);
289}
290
291/**
292 * Print function (will be overridden during initialization)

Callers 1

toStringWithTimeStampFunction · 0.85

Calls 1

getTimeMethod · 0.45

Tested by

no test coverage detected