File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function processCriticalQueue (queue) {
26
26
}
27
27
28
28
function runQueuedHighTasks ( ) {
29
- const startTime = performance . now ( )
29
+ const startTime = Date . now ( )
30
30
const isEmpty = processIdleQueues ( priorities . HIGH , startTime )
31
31
// there are more tasks to run in the next cycle
32
32
if ( ! isEmpty ) {
@@ -35,7 +35,7 @@ function runQueuedHighTasks () {
35
35
}
36
36
37
37
function runQueuedLowTasks ( ) {
38
- const startTime = performance . now ( )
38
+ const startTime = Date . now ( )
39
39
const isEmpty = processIdleQueues ( priorities . LOW , startTime )
40
40
// there are more tasks to run in the next cycle
41
41
if ( ! isEmpty ) {
@@ -60,7 +60,7 @@ function processIdleQueues (priority, startTime) {
60
60
function processIdleQueue ( queue , startTime ) {
61
61
const iterator = queue [ Symbol . iterator ] ( )
62
62
let task = iterator . next ( )
63
- while ( performance . now ( ) - startTime < TARGET_INTERVAL ) {
63
+ while ( Date . now ( ) - startTime < TARGET_INTERVAL ) {
64
64
if ( task . done ) {
65
65
return true
66
66
}
You can’t perform that action at this time.
0 commit comments