(options?: ActivityManagerOptions)
| 26 | private static instance: ActivityManager | null = null |
| 27 | |
| 28 | constructor(options?: ActivityManagerOptions) { |
| 29 | this.getNow = options?.getNow ?? (() => Date.now()) |
| 30 | this.getActiveTimeCounter = |
| 31 | options?.getActiveTimeCounter ?? getActiveTimeCounterImpl |
| 32 | this.lastCLIRecordedTime = this.getNow() |
| 33 | } |
| 34 | |
| 35 | static getInstance(): ActivityManager { |
| 36 | if (!ActivityManager.instance) { |
nothing calls this directly
no outgoing calls
no test coverage detected