mirror of
https://github.com/status-im/react-native.git
synced 2025-02-28 17:10:50 +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
f7a81d1837
commit
0a475d2b32
@ -13,4 +13,6 @@
|
|||||||
|
|
||||||
global.__DEV__ = false;
|
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.__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