Function ic_cdk::api::call_context_instruction_counter

source ยท
pub fn call_context_instruction_counter() -> u64
Expand description

Returns the number of WebAssembly instructions the canister has executed within the call context of the current Message execution since Call context creation.

The counter monotonically increases across all message executions in the call context until the corresponding call context is removed.