Current section
Files
Jump to
Current section
Files
src/pocket_watch_ffi.mjs
export function elapsed(fun) {
const start = globalThis.performance.now();
const ret = fun();
const stop = globalThis.performance.now();
return (ret, stop - start * 1000000);
}