forked from lxm_front/Mergely
* refactor: split code into separate files * chore: removed unused test code * refactor: no longer depends on jQuery.extend * docs: merged changes into CHANGELOG.md Co-authored-by: Jamie Peabody <jpeabody@axway.com>
17 lines
216 B
JavaScript
17 lines
216 B
JavaScript
class Timer {
|
|
static start() {
|
|
Timer.t0 = Date.now();
|
|
}
|
|
|
|
static stop() {
|
|
const t1 = Date.now();
|
|
const td = t1 - Timer.t0;
|
|
Timer.t0 = t1;
|
|
return td;
|
|
}
|
|
}
|
|
|
|
Timer.t0 = 0;
|
|
|
|
exports = module.exports = Timer;
|