Skip to content

Commit 9b2a21d

Browse files
committed
Don't call performance.now() twice in a row
1 parent d724ba9 commit 9b2a21d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-reconciler/src/ReactProfilerTimer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function startProfilerTimer(fiber: Fiber): void {
101101
profilerStartTime = now();
102102

103103
if (((fiber.actualStartTime: any): number) < 0) {
104-
fiber.actualStartTime = now();
104+
fiber.actualStartTime = profilerStartTime;
105105
}
106106
}
107107

0 commit comments

Comments
 (0)