formatDuration() — tailwindcss Function Reference
Architecture documentation for the formatDuration() function in renderer.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 21429f2e_0e17_b214_4c60_37db363bde4c["formatDuration()"] 8715b8e3_2ef0_3a5f_beb9_7129d3febc3e["renderer.ts"] 21429f2e_0e17_b214_4c60_37db363bde4c -->|defined in| 8715b8e3_2ef0_3a5f_beb9_7129d3febc3e d87bed42_7e6b_486b_9a4e_d68e501d161a["formatNanoseconds()"] 21429f2e_0e17_b214_4c60_37db363bde4c -->|calls| d87bed42_7e6b_486b_9a4e_d68e501d161a style 21429f2e_0e17_b214_4c60_37db363bde4c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-cli/src/utils/renderer.ts lines 72–80
export function formatDuration(ns: bigint) {
let formatted = formatNanoseconds(ns)
if (ns <= 50 * 1e6) return pc.green(formatted)
if (ns <= 300 * 1e6) return pc.blue(formatted)
if (ns <= 1000 * 1e6) return pc.yellow(formatted)
return pc.red(formatted)
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does formatDuration() do?
formatDuration() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-cli/src/utils/renderer.ts.
Where is formatDuration() defined?
formatDuration() is defined in packages/@tailwindcss-cli/src/utils/renderer.ts at line 72.
What does formatDuration() call?
formatDuration() calls 1 function(s): formatNanoseconds.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free