devela/phys/time/
reexports.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// devela::phys::time
//
//! Reexported items from `core`.
//

use crate::reexport;

/* core */

reexport! { rust: core::time,
    doc: "A span of time, with `u64` seconds and `u32` nanoseconds.",
    @Duration as Duration
}
reexport! { rust: core::time,
    tag: crate::TAG_ERROR!(),
    doc: "Error returned from converting floating-point seconds into a [`Duration`].",
    @TryFromFloatSecsError as DurationErrorTryFromFloatSecs
}

/* std */

reexport! { rust: std::time,
    doc: "A measurement of a monotonically nondecreasing clock.",
    @Instant as SystemInstant
}
reexport! { rust: std::time,
    doc: "A measurement of the system clock.",
    SystemTime
}
// reexport! { rust: std::time,
//     tag: crate::TAG_ERROR!(),
//     doc: "Error returned from the `duration_since` and `elapsed` methods on [`SystemTime`].",
//     SystemTimeError
// }
reexport! { rust: std::time,
    doc: "A [`SystemTime`] anchored to “1970-01-01 00:00:00 UTC”.",
    UNIX_EPOCH
}