MCPcopy Create free account
hub / github.com/bytebase/bytebase / emptyTimerEntry

Function emptyTimerEntry

frontend/src/utils/TinyTimer.ts:14–21  ·  view source on GitHub ↗
(tag: string)

Source from the content-addressed store, hash-verified

12};
13
14const emptyTimerEntry = (tag: string): TimerEntry => {
15 return {
16 tag,
17 time: 0,
18 count: 0,
19 loops: 0,
20 };
21};
22
23export class TinyTimer<T extends string = string> {
24 private entires: Partial<Record<T, TimerEntry>> = {};

Callers 1

endMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected