mirror of
https://github.com/status-im/metro.git
synced 2025-02-08 01:03:28 +00:00
Use performanceNow to calculate __BUNDLE_START_TIME__
Reviewed By: javache Differential Revision: D4706142 fbshipit-source-id: aa983d9e5d5324f97ae34ec0190b1fc988d012c8
This commit is contained in:
parent
79c488b9f7
commit
4a90d1178f
@ -13,4 +13,6 @@
|
||||
|
||||
global.__DEV__ = false;
|
||||
|
||||
global.__BUNDLE_START_TIME__ = Date.now();
|
||||
global.__BUNDLE_START_TIME__ = global.nativePerformanceNow
|
||||
? global.nativePerformanceNow()
|
||||
: Date.now();
|
||||
|
@ -13,4 +13,6 @@
|
||||
|
||||
global.__DEV__ = true;
|
||||
|
||||
global.__BUNDLE_START_TIME__ = Date.now();
|
||||
global.__BUNDLE_START_TIME__ = global.nativePerformanceNow
|
||||
? global.nativePerformanceNow()
|
||||
: Date.now();
|
||||
|
Loading…
x
Reference in New Issue
Block a user