Skip to content

Commit ce7dd53

Browse files
alexeylangfacebook-github-bot
authored andcommitted
Use timestamps from QPL by default
Differential Revision: D8207166 fbshipit-source-id: 1e43d6874ee400cb2e26a11cbcfb12ee32d28d3c
1 parent 6e359c4 commit ce7dd53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Libraries/Utilities/PerformanceLogger.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ const performanceNow =
1616
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an
1717
* error found when Flow v0.54 was deployed. To see the error delete this
1818
* comment and run Flow. */
19-
global.nativePerformanceNow || require('fbjs/lib/performanceNow');
19+
global.nativeQPLTimestamp ||
20+
global.nativePerformanceNow ||
21+
require('fbjs/lib/performanceNow');
2022

2123
type Timespan = {
2224
description?: string,

0 commit comments

Comments
 (0)