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