MCPcopy Create free account
hub / github.com/react-static/react-static / time

Function time

packages/react-static/src/utils/index.js:21–23  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

19
20const times = {}
21export function time(message) {
22 times[message] = performance.now() / 1000
23}
24export function timeEnd(message) {
25 if (times[message]) {
26 let seconds = (performance.now() / 1000 - times[message]) * 10

Callers 11

buildHTMLFunction · 0.90
cleanDistDirectoryFunction · 0.90
fetchRoutes.jsFile · 0.90
fetchSiteData.jsFile · 0.90
copyPublicFolderFunction · 0.90
getRoutesFunction · 0.90
runExpressServerFunction · 0.90
buildProductionBundlesFunction · 0.90
create.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…