UNPKG

@techmely/utils

Version:

Collection of helpful JavaScript / TypeScript utils

20 lines (17 loc) 415 B
/*! * @techmely/utils * Copyright(c) 2021-2024 Techmely <techmely.creation@gmail.com> * MIT Licensed */ "use strict"; (() => { // 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; } })();