We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3292e57 commit 3cfcc9bCopy full SHA for 3cfcc9b
src/time.js
@@ -28,16 +28,16 @@ export const now = (() => {
28
29
return () => {
30
const now = performance.now.bind(performance)
31
- return 1e6 * now()
+ return () => 1e6 * now()
32
}
33
},
34
- node: () => () => {
35
- const hrtimeNow = process.hrtime.bigint.bind(process)
36
- return Number(hrtimeNow())
+ node: () => {
+ const hrtimeBigint = process.hrtime.bigint.bind(process.bigint)
+ return () => Number(hrtimeBigint())
37
38
- deno: () => () => {
+ deno: () => {
39
40
41
42
bun: () => {
43
const now = Bun.nanoseconds.bind(Bun)
0 commit comments