MCPcopy Create free account
hub / github.com/code-pushup/cli / calcDuration

Function calcDuration

packages/utils/src/lib/reports/utils.ts:147–149  ·  view source on GitHub ↗
(start: number, stop?: number)

Source from the content-addressed store, hash-verified

145}
146
147export function calcDuration(start: number, stop?: number): number {
148 return Math.round((stop ?? performance.now()) - start);
149}
150
151export function countWeightedRefs(refs: CategoryRef[]) {
152 return refs

Callers 4

compareReportsFunction · 0.90
collectFunction · 0.90
executePluginRunnerFunction · 0.90
utils.unit.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected