fix: Combine the hrtime tuple to get a better seconds representation (#82687)
When building w/ webpack to calculate duration, we use `process.hrtime` which is a tuple of integers [seconds, nanoseconds] - which means that for sub second compiler runs, we end up showing total 0ms, or 1000ms (I think) - https://nodejs.org/api/process.html#processhrtimetime With this PR we combine the seconds and nanoseconds into a float. ### Before: ```console ▲ Next.js 15.4.6 - Environments: .env.production Creating an optimized production build ... ✓ Compiled successfully in 0ms Skipping validation of types ``` ### After ```console ▲ Next.js 15.4.6 - Environments: .env.production Creating an optimized production build ... ✓ Compiled successfully in 813ms Skipping validation of types ```
Showing
Please
register
or
sign in
to comment