Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws/clock-bound
/ midpoint
Method
midpoint
clock-bound/src/daemon/time/inner.rs:131–133 ·
view source on GitHub ↗
(&self, other: Self)
Source
from the content-addressed store, hash-verified
129
/// Get the midpoint between 2 instants
130
#[must_use]
131
pub const fn midpoint(&self, other: Self) -> Self {
132
Self::new(self.instant.midpoint(other.instant))
133
}
134
}
135
136
impl<T: Type> From<i128> for Time<T> {
Callers
15
compare_clock_error_bound
Function · 0.80
compare_clock_error_bound_with_aging
Function · 0.80
tsc_midpoint
Method · 0.80
now
Method · 0.80
update
Function · 0.80
feed_two_events
Function · 0.80
get_offset_and_rtt
Method · 0.80
midpoint
Function · 0.80
calculate_offset
Function · 0.80
calculate_period
Method · 0.80
calculate_period_with_error
Method · 0.80
calculate_offset
Method · 0.80
Calls
1
new
Function · 0.50
Tested by
3
feed_two_events
Function · 0.64
alg_is_perfect_under_perfect_conditions
Function · 0.64
alg_is_perfect_under_perfect_conditions
Function · 0.64