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

Function duration_seconds_from_ms

crates/openshell-server/src/readiness.rs:225–230  ·  view source on GitHub ↗
(ms: u64)

Source from the content-addressed store, hash-verified

223}
224
225fn duration_seconds_from_ms(ms: u64) -> f64 {
226 #[allow(clippy::cast_precision_loss)]
227 {
228 ms as f64 / 1000.0
229 }
230}
231
232fn elapsed_ms(elapsed: Duration) -> u64 {
233 u64::try_from(elapsed.as_millis()).unwrap_or(u64::MAX)

Callers 1

record_metricsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected