MCPcopy Create free account
hub / github.com/dfinity/orbit / time

Function time

libs/orbit-essentials/src/cdk.rs:80–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 }
79
80 pub fn time() -> u64 {
81 IC_TIME.with(|t| t.borrow().duration_since(UNIX_EPOCH).unwrap().as_nanos() as u64)
82 }
83
84 pub fn id() -> Principal {
85 super::TEST_CANISTER_ID

Callers 15

rate_limitFunction · 0.85
test_request_insertionFunction · 0.85
test_request_removalFunction · 0.85
run_scheduledMethod · 0.85
scheduleMethod · 0.85
fromMethod · 0.85
defaultMethod · 0.85
evaluate_requestsMethod · 0.85

Calls

no outgoing calls

Tested by 6

test_request_insertionFunction · 0.68
test_request_removalFunction · 0.68
test_do_recoveryFunction · 0.68