UNPKG
for-emit-of
Version:
latest (1.4.0)
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Turn Node.js Events into Async Iterables
github.com/danstarns/for-emit-of
danstarns/for-emit-of
for-emit-of
/
dist
/
instant.js
9 lines
(8 loc)
•
222 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
instant
=
void
0
;
function
instant
(
) {
const
[s, ns] = process.
hrtime
();
return
s *
1e3
+ ns /
1e6
; }
exports
.
instant
= instant;