MCPcopy Create free account
hub / github.com/OneNoteDev/WebClipper / stopTimer

Method stopTimer

src/scripts/logging/submodules/event.ts:156–163  ·  view source on GitHub ↗

* If called multiple times in a row, last call wins * If called before startTimer(), nothing happens

()

Source from the content-addressed store, hash-verified

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;

Callers 6

getPatchWithLoggingMethod · 0.80
getPageWithLoggingMethod · 0.80
getBatchWithLoggingMethod · 0.80
logEventMethod · 0.80
createLogEventAsJsonFunction · 0.80
setStatusMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected