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

Function current_timestamp

src/tracedecay.rs:118–123  ·  view source on GitHub ↗

Returns the current UNIX timestamp in seconds.

()

Source from the content-addressed store, hash-verified

116
117/// Returns the current UNIX timestamp in seconds.
118pub fn current_timestamp() -> i64 {
119 std::time::SystemTime::now()
120 .duration_since(std::time::UNIX_EPOCH)
121 .unwrap_or_default()
122 .as_secs() as i64
123}
124
125/// Returns `true` if the file path looks like a test file.
126pub fn is_test_file(path: &str) -> bool {

Callers 15

current_unix_timestampFunction · 0.85
handle_migrate_actionFunction · 0.85
handle_sessions_actionFunction · 0.85
upsert_code_projectMethod · 0.85
upsert_store_instanceMethod · 0.85
save_token_countsMethod · 0.85
plan_and_apply_repairsFunction · 0.85

Calls

no outgoing calls