MCPcopy
hub / github.com/winstonjs/winston / startTimer

Method startTimer

lib/winston/logger.js:572–574  ·  view source on GitHub ↗

* Returns an object corresponding to a specific timing. When done is called * the timer will finish and log the duration. e.g.: * @returns {Profile} - TODO: add return description. * @example * const timer = winston.startTimer() * setTimeout(() => { * timer.done({ *

()

Source from the content-addressed store, hash-verified

570 * }, 1000);
571 */
572 startTimer() {
573 return new Profiler(this);
574 }
575
576 /**
577 * Tracks the time inbetween subsequent calls to this method with the same

Callers 1

logger.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected