Use performanceNow to calculate __BUNDLE_START_TIME__

Reviewed By: javache

Differential Revision: D4706142

fbshipit-source-id: aa983d9e5d5324f97ae34ec0190b1fc988d012c8
This commit is contained in:
Alexey Lang authored and Facebook Github Bot committed 2017-03-14 13:47:56 -07:00
1 parent f7a81d1837
commit 0a475d2b32
2 files changed
+6 -2

No files matched your search

+3 -1
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();
@@ -13,4 +13,6 @@
global.__DEV__ = true;
global.__BUNDLE_START_TIME__ = Date.now();
global.__BUNDLE_START_TIME__ = global.nativePerformanceNow
? global.nativePerformanceNow()
: Date.now();