* 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({ *
()
| 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 |