MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / now_secs

Function now_secs

src/daemon/git_watch.rs:807–812  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

805}
806
807fn now_secs() -> u64 {
808 SystemTime::now()
809 .duration_since(UNIX_EPOCH)
810 .unwrap_or_default()
811 .as_secs()
812}
813
814/// Backstop scheduler (design D5): a single daemon timer covering projects whose
815/// watcher heartbeat is stale/absent, plus daily branch-store GC.

Callers 5

beatMethod · 0.70
mark_syncedMethod · 0.70
heartbeat_staleMethod · 0.70
store_is_staleFunction · 0.70
heartbeat_stalenessFunction · 0.50

Calls

no outgoing calls

Tested by 1

heartbeat_stalenessFunction · 0.40