MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / timedAsync

Function timedAsync

scripts/experimental/swiftui-preview.mjs:242–247  ·  view source on GitHub ↗
(label, action)

Source from the content-addressed store, hash-verified

240 return result;
241 };
242 const timedAsync = async (label, action) => {
243 const stageStarted = Date.now();
244 const result = await action();
245 timings.push([label, Date.now() - stageStarted]);
246 return result;
247 };
248 const source = timed("read source", () =>
249 fs.readFileSync(sourceFile, "utf8"),
250 );

Callers 1

reloadPreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected