Enhance CLI Build Duration Output with Human-Readable Formatting (#4591)

* Use humantime for build duration formatting in CLI

Replaces manual millisecond formatting with humantime::format_duration for improved readability of build duration logs. Adds humantime as a dependency in Cargo.toml.

* Format build duration with millisecond precision

Changed build duration logging to use millisecond precision instead of default formatting to avoid microsecond/nanosecond noise.

* Refactor duration formatting to use helper function to reduce code duplication.

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
Fu WangandJonathan Kelley authored and GitHub committed 2026-01-16 17:57:14 -08:00
1 parent 8c1911c268
commit 128a9d9fad
3 files changed
+13 -4

No files matched your search

+1
View File
@@ -108,6 +108,7 @@ tracing-subscriber = { version = "0.3.19", features = [
"fmt",
] }
console-subscriber = { version = "0.4.1", optional = true }
humantime = "2.2.0"
tracing = { workspace = true }
ansi-to-tui = { workspace = true }
ansi-to-html = { workspace = true }