Use performanceNow to calculate __BUNDLE_START_TIME__

Reviewed By: javache

Differential Revision: D4706142

fbshipit-source-id: aa983d9e5d5324f97ae34ec0190b1fc988d012c8
This commit is contained in:
Alexey Lang 2017-03-14 13:44:54 -07:00 committed by Facebook Github Bot
parent 79c488b9f7
commit 4a90d1178f
2 changed files with 6 additions and 2 deletions

View File

@ -13,4 +13,6 @@
global.__DEV__ = false;
global.__BUNDLE_START_TIME__ = Date.now();
global.__BUNDLE_START_TIME__ = global.nativePerformanceNow
? global.nativePerformanceNow()
: Date.now();

View File

@ -13,4 +13,6 @@
global.__DEV__ = true;
global.__BUNDLE_START_TIME__ = Date.now();
global.__BUNDLE_START_TIME__ = global.nativePerformanceNow
? global.nativePerformanceNow()
: Date.now();