chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4259449
)
prelude: Provide CLOCK_MONOTONIC too
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 20 Mar 2021 21:47:41 +0000
(21:47 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 20 Mar 2021 21:48:50 +0000
(21:48 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/prelude.rs
patch
|
blob
|
history
diff --git
a/src/prelude.rs
b/src/prelude.rs
index ded332bf0f7488746be5ad36b430b05615d5958a..967c85255976980e4ef3723b50db98e72cf0f618 100644
(file)
--- 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;