Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
502
fn 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)]
510
mod tests {
Callers
4
new
Method · 0.70
record_event
Method · 0.70
mark_failed
Method · 0.70
mark_cancelled
Method · 0.70
Calls
1
now
Function · 0.85
Tested by
no test coverage detected