MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / now_secs

Function now_secs

gateway/src/admin_service.rs:744–749  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

742// ==================== Helper Functions ====================
743
744fn now_secs() -> u64 {
745 SystemTime::now()
746 .duration_since(UNIX_EPOCH)
747 .unwrap_or_default()
748 .as_secs()
749}
750
751fn generate_cred_id() -> String {
752 use std::time::SystemTime;

Callers 2

create_dns_credentialMethod · 0.70
update_dns_credentialMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected