getTimeStat() — astro Function Reference
Architecture documentation for the getTimeStat() function in content-benchmark.mjs from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 824cd512_3555_9162_3db1_45e22e1def28["getTimeStat()"] b92732a1_433f_7d78_4b70_e38568589f59["content-benchmark.mjs"] 824cd512_3555_9162_3db1_45e22e1def28 -->|defined in| b92732a1_433f_7d78_4b70_e38568589f59 6d277f3d_88f9_05d3_9a12_e441d72b9900["benchmark()"] 6d277f3d_88f9_05d3_9a12_e441d72b9900 -->|calls| 824cd512_3555_9162_3db1_45e22e1def28 style 824cd512_3555_9162_3db1_45e22e1def28 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/performance/content-benchmark.mjs lines 115–118
function getTimeStat(timeStart, timeEnd) {
const buildTime = timeEnd - timeStart;
return buildTime < 750 ? `${Math.round(buildTime)}ms` : `${(buildTime / 1000).toFixed(2)}s`;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getTimeStat() do?
getTimeStat() is a function in the astro codebase, defined in packages/astro/performance/content-benchmark.mjs.
Where is getTimeStat() defined?
getTimeStat() is defined in packages/astro/performance/content-benchmark.mjs at line 115.
What calls getTimeStat()?
getTimeStat() is called by 1 function(s): benchmark.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free