suspend-time 0.1.2

A cross-platform monotonic clock that is suspend-unaware, written in Rust!
Documentation
1
2
3
4
5
6
7
8
9
use std::time::Duration;

#[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone)]
pub struct SuspendUnawareInstant {}
impl SuspendUnawareInstant {
    pub fn now() -> SuspendUnawareInstant {
        unimplemented!("This platform is not supported by the suspend-time library!");
    }
}