* If called multiple times in a row, last call wins * If called before startTimer(), nothing happens
()
| 154 | * If called before startTimer(), nothing happens |
| 155 | */ |
| 156 | public stopTimer(): boolean { |
| 157 | if (this._startTime) { |
| 158 | this._duration = new Date().getTime() - this._startTime; |
| 159 | this._timerWasStopped = true; |
| 160 | return true; |
| 161 | } |
| 162 | return false; |
| 163 | } |
| 164 | |
| 165 | public timerWasStopped(): boolean { |
| 166 | return this._timerWasStopped; |
no outgoing calls
no test coverage detected