MCPcopy Create free account
hub / github.com/ReactTooltip/react-tooltip / logProgress

Function logProgress

benchmarks/run-benchmark.mjs:128–139  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

126}
127
128function logProgress(message) {
129 const timestamp = new Date().toLocaleTimeString()
130 const elapsedSeconds = ((Date.now() - benchmarkStartedAt) / 1000).toFixed(1)
131 const tags = ['benchmark']
132 if (workerId) {
133 tags.push(`worker:${workerId}`)
134 }
135 if (runLabel) {
136 tags.push(runLabel)
137 }
138 console.log(`[${tags.join(' ')} ${timestamp} +${elapsedSeconds}s] ${message}`)
139}
140
141function timestampId() {
142 return new Date().toISOString().replace(/[:.]/g, '-')

Callers 2

mainFunction · 0.85
runVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected