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

Function now_secs

nodedb/src/control/security/session_handle/store.rs:258–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256}
257
258fn now_secs() -> u64 {
259 SystemTime::now()
260 .duration_since(UNIX_EPOCH)
261 .unwrap_or_default()
262 .as_secs()
263}
264
265fn generate_handle() -> String {
266 crate::control::security::random::generate_tagged_random_hex("nds_")

Callers 8

createMethod · 0.70
resolveMethod · 0.70
countMethod · 0.70
oldest_age_secsMethod · 0.70
registerMethod · 0.50
touchMethod · 0.50
touch_with_bytesMethod · 0.50
list_allMethod · 0.50

Calls 2

nowFunction · 0.85
duration_sinceMethod · 0.80

Tested by

no test coverage detected