chore: do not use |0 for rounding large numbers (#35096)
This commit is contained in:
parent
a94d29eacf
commit
7fe44bbd6f
|
@ -15,5 +15,5 @@
|
|||
*/
|
||||
|
||||
export function monotonicTime(): number {
|
||||
return (performance.now() * 1000 | 0) / 1000;
|
||||
return Math.floor(performance.now() * 1000) / 1000;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue