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

Function getUniqueTimeId

packages/utils/src/lib/process-id.ts:60–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 * @returns A unique run ID string in readable date format
59 */
60export function getUniqueTimeId(): string {
61 return sortableReadableDateString(
62 Math.floor(performance.timeOrigin + performance.now()),
63 );
64}
65
66/**
67 * Generates a unique process/thread ID.

Callers 6

getShardIdFunction · 0.85
constructorMethod · 0.85
getUniqueProcessThreadIdFunction · 0.85
getUniqueInstanceIdFunction · 0.85
constructorMethod · 0.85

Calls 1

Tested by

no test coverage detected