Skip to content

Commit

Permalink
feat: add replyDeadline to ExperimentalInternetComputer
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreif committed Dec 4, 2024
1 parent 0e3b809 commit 41b9378
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ExperimentalInternetComputer.mo
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,10 @@ module {
/// ```
public let performanceCounter : (counter : Nat32) -> (value: Nat64) = Prim.performanceCounter;

/// Returns the time (in nanoseconds from the epoch start) by when the update message should
/// reply to the best effort message so that it can get delivered at the requesting canister.
/// Queries and non-best-effort update messages return zero.
///
public func replyDeadline() : Nat = Prim.nat64ToNat(Prim.replyDeadline());

}

0 comments on commit 41b9378

Please sign in to comment.