MCPcopy Create free account
hub / github.com/DNSCrypt/encrypted-dns-server / now

Function now

src/dnscrypt_certs.rs:152–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150}
151
152pub fn now() -> u32 {
153 SystemTime::now()
154 .duration_since(SystemTime::UNIX_EPOCH)
155 .expect("The clock is completely off")
156 .as_secs() as _
157}
158
159#[derive(Debug, Default, Copy, Clone, Serialize, Deserialize)]
160#[repr(C, packed)]

Callers 5

is_allowedMethod · 0.85
defaultMethod · 0.85
newMethod · 0.85
updateMethod · 0.85
decrypt_pq_ciphertextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected