From ce7dd53dab2b33b0cab640e48a089a8ef81d89ab Mon Sep 17 00:00:00 2001 From: Alexey Lang Date: Thu, 31 May 2018 02:37:33 -0700 Subject: [PATCH] Use timestamps from QPL by default Differential Revision: D8207166 fbshipit-source-id: 1e43d6874ee400cb2e26a11cbcfb12ee32d28d3c --- Libraries/Utilities/PerformanceLogger.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Libraries/Utilities/PerformanceLogger.js b/Libraries/Utilities/PerformanceLogger.js index 23fcac7951f..203e2412587 100644 --- a/Libraries/Utilities/PerformanceLogger.js +++ b/Libraries/Utilities/PerformanceLogger.js @@ -16,7 +16,9 @@ const performanceNow = /* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an * error found when Flow v0.54 was deployed. To see the error delete this * comment and run Flow. */ - global.nativePerformanceNow || require('fbjs/lib/performanceNow'); + global.nativeQPLTimestamp || + global.nativePerformanceNow || + require('fbjs/lib/performanceNow'); type Timespan = { description?: string,