MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / now_timestamp_ms

Function now_timestamp_ms

atomic-repository/src/repository/observability.rs:1121–1126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1119}
1120
1121fn now_timestamp_ms() -> u64 {
1122 SystemTime::now()
1123 .duration_since(UNIX_EPOCH)
1124 .map(|duration| duration.as_millis() as u64)
1125 .unwrap_or(0)
1126}
1127
1128#[cfg(test)]
1129mod tests {

Callers 1

emitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected