update(turbopack): Update the messaging UX for timing writing files to disk (#79469)
## Refactor Turbopack Compilation Events and Timing Reporting
### What?
This PR refactors how compilation events are created, displayed, and
formatted in Turbopack. It introduces a dedicated `TimingEvent` type for
timing-related messages and improves the formatting of duration
displays.
Additionally we now display all compilation events now that it has been
shown to be stable with no breakages.
### Why?
To provide more consistent and user-friendly output for compilation
events, especially for timing information. The new approach makes
duration formatting more readable by automatically selecting appropriate
units (ms, s, min) based on the duration length.
### How?
- Added a new `TimingEvent` struct that properly formats durations based
on their duration
- Updated the `DiagnosticEvent` constructor to take severity first, then
message
- Improved event handling in the build process to properly categorize
and display different severity levels
- Enhanced file I/O benchmarking to use the new timing event format
- Fixed the formatting of compilation events in the UI
---------
Co-authored-by: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com>