formatDuration() — tailwindcss Function Reference
Architecture documentation for the formatDuration() function in renderer.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD e1135e61_e96c_d980_2072_94721c43116b["formatDuration()"] 9106c15d_cfb8_77f5_665e_9707020b48c8["renderer.ts"] e1135e61_e96c_d980_2072_94721c43116b -->|defined in| 9106c15d_cfb8_77f5_665e_9707020b48c8 f1036358_1349_9cc5_4378_7a8df38a3224["formatNanoseconds()"] e1135e61_e96c_d980_2072_94721c43116b -->|calls| f1036358_1349_9cc5_4378_7a8df38a3224 style e1135e61_e96c_d980_2072_94721c43116b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/utils/renderer.ts lines 78–86
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-upgrade/src/utils/renderer.ts.
Where is formatDuration() defined?
formatDuration() is defined in packages/@tailwindcss-upgrade/src/utils/renderer.ts at line 78.
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