Return a milliseconds number as a second string @param {Number} ms @return {String}
(ms)
| 47 | @return {String} |
| 48 | */ |
| 49 | function time(ms) { |
| 50 | if (ms < 1000) { |
| 51 | return (ms.toFixed(0)) + 'ms'; |
| 52 | } |
| 53 | |
| 54 | return (ms/1000).toFixed(2) + 's'; |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | Dump all timers to a logger |
no outgoing calls
no test coverage detected
searching dependent graphs…