UNPKG
bunyan-debug
Version:
latest (2.0.0)
2.0.0
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
Bunyan powered logger with namespaces
github.com/emartech/bunyan-debug
emartech/bunyan-debug
bunyan-debug
/
src
/
timer
/
timer.js
16 lines
(11 loc)
•
206 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict'
;
class
Timer
{
constructor
(
) {
this
.
start
=
new
Date
().
getTime
(); }
elapsedTime
(
) {
let
end =
new
Date
().
getTime
();
return
end -
this
.
start
; } }
module
.
exports
=
Timer
;