MCPcopy
hub / github.com/facebook/react / now

Function now

packages/react-devtools-shared/src/PerformanceLoggingUtils.js:38–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38function now(): number {
39 if (supportsPerformanceNow) {
40 return performance.now();
41 }
42 return Date.now();
43}
44
45export async function withAsyncPerfMeasurements<TReturn>(
46 markName: string,

Callers 15

withSyncPerfMeasurementsFunction · 0.70
doneFunction · 0.70
startYieldTimerFunction · 0.50
startUpdateTimerByLaneFunction · 0.50
startHostActionTimerFunction · 0.50
startPingTimerByLanesFunction · 0.50
clearBlockingTimersFunction · 0.50
clearTransitionTimersFunction · 0.50
clearGestureTimersFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected