UNPKG
precise-now
Version:
latest (3.0.1)
3.0.1
3.0.0
2.0.0
1.2.0
1.1.0
1.0.0
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.1
0.3.0
0.2.0
0.1.2
0.1.1
0.0.1
Like `performance.now()` but in nanoseconds.
www.github.com/ehmicky/precise-now
ehmicky/precise-now
precise-now
/
build
/
src
/
main.d.ts
13 lines
(12 loc)
•
255 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/** * Return the number of nanoseconds since the time origin. * *
@example
* ```js * const start = preciseNow() * const end = preciseNow() * const duration = end - start * ``` */
declare
const
preciseNow
:
() =>
number
;
export
default
preciseNow;