MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / logTime

Function logTime

src/extension/utils.ts:253–259  ·  view source on GitHub ↗
(taskFinished?: string)

Source from the content-addressed store, hash-verified

251 return str;
252}
253export const logTime = (taskFinished?: string) => {
254 if (!shouldLogTimings)
255 return;
256 const end = process.hrtime.bigint();
257 console.log(`${pad((end - last).toString(), 15)} ${taskFinished ? "<== " + taskFinished : ""}`);
258 last = end;
259};
260
261export async function openLogContents(logType = `txt`, logContents: string, tempPath?: string) {
262 if (!tempPath)

Callers

nothing calls this directly

Calls 3

padFunction · 0.85
logMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected