MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / format_timestamp

Function format_timestamp

crates/openshell-cli/src/run.rs:397–400  ·  view source on GitHub ↗

Format a total elapsed time for non-interactive mode timestamps.

(d: Duration)

Source from the content-addressed store, hash-verified

395
396/// Format a total elapsed time for non-interactive mode timestamps.
397fn format_timestamp(d: Duration) -> String {
398 let secs = d.as_secs_f64();
399 format!("[{secs:.1}s]")
400}
401
402fn progress_step_from_metadata(value: &str) -> Option<ProvisioningStep> {
403 match value {

Callers 2

sandbox_createFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected