UNPKG
@calipsa/timer
Version:
latest (1.0.0)
1.0.0
0.0.1
A simple timer
github.com/calipsa/timer
calipsa/timer
@calipsa/timer
/
dist
/
index.js
10 lines
•
275 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
const
perf_hooks_1 =
require
(
"perf_hooks"
);
module
.
exports
=
() =>
{
const
start = perf_hooks_1.
performance
.
now
();
return
() =>
{
const
end = perf_hooks_1.
performance
.
now
();
return
end - start; }; };
//# sourceMappingURL=index.js.map