@techmely/utils
Version:
Collection of helpful JavaScript / TypeScript utils
14 lines (11 loc) • 314 B
JavaScript
import './chunk-NYLAFCGV.mjs';
// src/timeSpanBr.ts
function timeSpanBr() {
const start = performance.now();
const end = () => performance.now() - start;
end.rounded = () => Math.round(end());
end.seconds = () => end() / 1e3;
end.nanoseconds = () => end() * 1e6;
return end;
}
export { timeSpanBr };