Skip to content

Commit

Permalink
fix: tick timer instead of using Date.now
Browse files Browse the repository at this point in the history
Refs: #3493
  • Loading branch information
ronag committed Aug 23, 2024
1 parent 69cfd97 commit 55d02e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

const TICK_MS = 499

let fastNow = Date.now()
let fastNow = 0
let fastNowTimeout

const fastTimers = []

function onTimeout () {
fastNow = Date.now()
fastNow += TICK_MS

let len = fastTimers.length
let idx = 0
Expand Down

0 comments on commit 55d02e4

Please sign in to comment.