MCPcopy Create free account
hub / github.com/AI45Lab/Code / now_ms

Function now_ms

core/src/run.rs:502–507  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

500}
501
502fn now_ms() -> u64 {
503 std::time::SystemTime::now()
504 .duration_since(std::time::UNIX_EPOCH)
505 .map(|duration| duration.as_millis() as u64)
506 .unwrap_or(0)
507}
508
509#[cfg(test)]
510mod tests {

Callers 4

newMethod · 0.70
record_eventMethod · 0.70
mark_failedMethod · 0.70
mark_cancelledMethod · 0.70

Calls 1

nowFunction · 0.85

Tested by

no test coverage detected