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

Function now_secs

nodedb/src/control/security/observability.rs:265–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263}
264
265fn now_secs() -> u64 {
266 std::time::SystemTime::now()
267 .duration_since(std::time::UNIX_EPOCH)
268 .unwrap_or_default()
269 .as_secs()
270}
271
272fn append_counter(out: &mut String, name: &str, label: &str, values: &[(&str, u64)]) {
273 for (lv, count) in values {

Callers 2

newMethod · 0.70

Calls 2

nowFunction · 0.85
duration_sinceMethod · 0.80

Tested by

no test coverage detected