* Starts a timer to measure the execution time of the given job / command. * @param {string} jobNameOrCmd * @return {DOMHighResTimeStamp}
(jobNameOrCmd)
| 126 | * @return {DOMHighResTimeStamp} |
| 127 | */ |
| 128 | function startTimer(jobNameOrCmd) { |
| 129 | const startTime = Date.now(); |
| 130 | const loggingPrefix = getLoggingPrefix(); |
| 131 | logWithoutTimestamp( |
| 132 | '\n' + loggingPrefix, |
| 133 | 'Running', |
| 134 | cyan(jobNameOrCmd) + '...' |
| 135 | ); |
| 136 | return startTime; |
| 137 | } |
| 138 | |
| 139 | /** |
| 140 | * Stops the timer for the given job / command and prints the execution time. |
no test coverage detected