MCPcopy Create free account
hub / github.com/aws/clock-bound / midpoint

Function midpoint

clock-bound/src/daemon/time/inner.rs:838–843  ·  view source on GitHub ↗
(#[case] a: i128, #[case] b: i128, #[case] expected: i128)

Source from the content-addressed store, hash-verified

836 assert_eq!(time.as_nanos(), 1_500_000_000);
837 }
838
839 #[test]
840 fn minutes() {
841 let time = Instant::from_minutes(1);
842 assert_eq!(time.as_minutes(), 1);
843 assert_eq!(time.as_nanos(), 60_000_000_000);
844 }
845
846 #[test]

Callers

nothing calls this directly

Calls 2

midpointMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected