()
| 72 | } |
| 73 | |
| 74 | resumeTimer () { |
| 75 | if (!this.ticking) { |
| 76 | this.logger.debug('RESUMING TIMER FOR ' + this.currentTimeInMillis + 'ms'); |
| 77 | this.start = Date.now(); |
| 78 | this.totalTime = this.currentTimeInMillis; |
| 79 | const expected = Date.now() + this.tickInterval; |
| 80 | const instance = this; |
| 81 | this.ticking = setTimeout(function () { |
| 82 | stepFn( |
| 83 | instance, |
| 84 | expected |
| 85 | ); |
| 86 | }, this.tickInterval); |
| 87 | |
| 88 | return this.timesUpPromise; |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | function convertFromMinutesToMilliseconds (minutes) { |
no test coverage detected