MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / format_duration_ms

Function format_duration_ms

src/display.rs:327–336  ·  view source on GitHub ↗
(ms: u64)

Source from the content-addressed store, hash-verified

325}
326
327fn format_duration_ms(ms: u64) -> String {
328 if ms == 0 {
329 return String::new();
330 }
331 if ms < 1000 {
332 format!("{ms}ms")
333 } else {
334 format!("{:.1}s", ms as f64 / 1000.0)
335 }
336}
337
338/// Print the third title row: last sync and full sync timestamps, right-aligned in dim.
339fn print_sync_row(

Callers 1

print_sync_rowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected