MCPcopy Index your code
hub / github.com/react/react / getRelativeTime

Function getRelativeTime

packages/react-devtools-shared/src/backend/profilingHooks.js:134–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132 let nextRenderShouldStartNewBatch: boolean = false;
133
134 function getRelativeTime() {
135 const currentTime = getCurrentTime();
136
137 if (currentTimelineData) {
138 if (currentTimelineData.startTime === 0) {
139 currentTimelineData.startTime = currentTime - TIME_OFFSET;
140 }
141
142 return currentTime - currentTimelineData.startTime;
143 }
144
145 return 0;
146 }
147
148 function getInternalModuleRanges() {
149 /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */

Calls 1

getCurrentTimeFunction · 0.50

Tested by

no test coverage detected