MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / now_ms

Function now_ms

nodedb-test-support/src/lib.rs:16–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14/// Current time in milliseconds since UNIX epoch.
15#[allow(dead_code)]
16pub fn now_ms() -> u64 {
17 std::time::SystemTime::now()
18 .duration_since(std::time::UNIX_EPOCH)
19 .unwrap_or_default()
20 .as_millis() as u64
21}
22
23/// Create a [`CdcEvent`] with sensible test defaults.
24#[allow(dead_code)]

Callers 3

make_cdc_eventFunction · 0.70
nextMethod · 0.50
observeMethod · 0.50

Calls 3

nowFunction · 0.85
duration_sinceMethod · 0.80
as_millisMethod · 0.45

Tested by

no test coverage detected