MCPcopy Create free account
hub / github.com/glideapps/quicktype / time

Function time

test/utils.ts:60–65  ·  view source on GitHub ↗
(work: () => Promise<T>)

Source from the content-addressed store, hash-verified

58}
59
60async function time<T>(work: () => Promise<T>): Promise<[T, number]> {
61 let start = +new Date();
62 let result = await work();
63 let end = +new Date();
64 return [result, end - start];
65}
66
67export async function quicktype(opts: Partial<CLIOptions>) {
68 let [result, duration] = await time(async () => {

Callers 1

quicktypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…