chore: do not use |0 for rounding large numbers (#35096)

This commit is contained in:
Pavel Feldman 2025-03-07 11:14:06 -08:00 committed by GitHub
parent a94d29eacf
commit 7fe44bbd6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -15,5 +15,5 @@
*/
export function monotonicTime(): number {
return (performance.now() * 1000 | 0) / 1000;
return Math.floor(performance.now() * 1000) / 1000;
}