MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / time

Function time

src/lib/console.js:166–172  ·  view source on GitHub ↗
(label = "default")

Source from the content-addressed store, hash-verified

164 log("log", getStack(new Error()), ...args);
165 },
166 time(label = "default") {
167 originalConsole.time(label);
168 if (typeof label !== "string") {
169 throw new TypeError("label must be a string");
170 }
171 timers[label] = new Date().getTime();
172 },
173 timeEnd(label = "default") {
174 originalConsole.timeEnd(label);
175 if (typeof label !== "string") {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected