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

Function formatDeltaMs

docs/src/pages/benchmark.tsx:6–9  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

4import styles from './benchmark.module.css'
5
6function formatDeltaMs(value: number) {
7 const sign = value > 0 ? '+' : ''
8 return `${sign}${value.toFixed(2)} ms`
9}
10
11function formatMemory(value: number) {
12 const sign = value > 0 ? '+' : ''

Callers 1

BenchmarkPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected