From 67f8feda667a69417760a27ca2e73f94627716b7 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 20 Mar 2021 21:47:41 +0000 Subject: [PATCH] prelude: Provide CLOCK_MONOTONIC too Signed-off-by: Ian Jackson --- src/prelude.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/prelude.rs b/src/prelude.rs index ded332bf..967c8525 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -98,7 +98,8 @@ pub use vecdeque_stableix::Deque as StableIndexVecDeque; pub use void::Void; use nix::time::ClockId; -pub const CLOCK_REALTIME: ClockId = ClockId::CLOCK_REALTIME; +pub const CLOCK_REALTIME : ClockId = ClockId::CLOCK_REALTIME ; +pub const CLOCK_MONOTONIC: ClockId = ClockId::CLOCK_MONOTONIC; pub use otter_base::zcoord::{self, ZCoord}; pub use otter_base::misc as base_misc; -- 2.30.2