formatDuration() — tailwindcss Function Reference
Architecture documentation for the formatDuration() function in renderer.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD f2776c74_12e0_dd2b_9419_4112903ba00e["formatDuration()"] 873b6f1c_d68c_7cdd_445d_f7e9b64fc1aa["formatNanoseconds()"] f2776c74_12e0_dd2b_9419_4112903ba00e -->|calls| 873b6f1c_d68c_7cdd_445d_f7e9b64fc1aa style f2776c74_12e0_dd2b_9419_4112903ba00e 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.
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