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

Function toStringWithTimeStamp

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

* Adds timestamp to console arguments * @param {...*} args - Console arguments to timestamp * @returns {Array} Arguments array with timestamp prepended

(...args)

Source from the content-addressed store, hash-verified

309 * @returns {Array} Arguments array with timestamp prepended
310 */
311function toStringWithTimeStamp(...args) {
312 const time = `${getTimeSinceEpoc()}s`;
313 return [time, ...args]; // Return array with time prepended, don't join
314}
315
316/**
317 * Custom console.log implementation with timestamps

Callers 2

logFunction · 0.85
warnFunction · 0.85

Calls 1

getTimeSinceEpocFunction · 0.85

Tested by

no test coverage detected