mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Cache performanceNow method
Summary: Changelog: [Internal] Reviewed By: lenaic Differential Revision: D72410946 fbshipit-source-id: 7097e7bf6ac613adccce7fe1267fb70785f976b3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
43a0bddd74
commit
007cefd94e
@@ -9863,7 +9863,7 @@ declare export default class Performance {
|
||||
endMark?: string
|
||||
): PerformanceMeasure;
|
||||
clearMeasures(measureName?: string): void;
|
||||
now(): DOMHighResTimeStamp;
|
||||
now: () => DOMHighResTimeStamp;
|
||||
getEntries(): PerformanceEntryList;
|
||||
getEntriesByType(entryType: PerformanceEntryType): PerformanceEntryList;
|
||||
getEntriesByName(
|
||||
|
||||
@@ -226,9 +226,7 @@ export default class Performance {
|
||||
* Returns a double, measured in milliseconds.
|
||||
* https://developer.mozilla.org/en-US/docs/Web/API/Performance/now
|
||||
*/
|
||||
now(): DOMHighResTimeStamp {
|
||||
return getCurrentTimeStamp();
|
||||
}
|
||||
now: () => DOMHighResTimeStamp = getCurrentTimeStamp;
|
||||
|
||||
/**
|
||||
* An extension that allows to get back to JS all currently logged marks/measures
|
||||
|
||||
Reference in New Issue
Block a user