> This is because NewV7 assumes that the wallclock timer always has microsecond or nanosecond precision, though a browser's wallclock (new Date.getTime()) is millisecond precision.
That's true of Date, but not Temporal, which supported in most cases. [1]
There needs to be a fallback, but when supported `Temporal.Now.instant()` is the solution.
Discussion (1 Comments)Read Original on HackerNews
That's true of Date, but not Temporal, which supported in most cases. [1]
There needs to be a fallback, but when supported `Temporal.Now.instant()` is the solution.
[1] https://caniuse.com/?search=temporal