MCPcopy
hub / github.com/theajack/disable-devtool / calculateTime

Function calculateTime

src/utils/util.ts:7–11  ·  view source on GitHub ↗
(func: Function)

Source from the content-addressed store, hash-verified

5}
6
7export function calculateTime (func: Function) {
8 const start = now();
9 func();
10 return now() - start;
11}
12
13export function getUrlParam (name: string) {
14 let {search} = window.location;

Callers 1

detectMethod · 0.90

Calls 1

nowFunction · 0.85

Tested by

no test coverage detected