1cfg_select! {
2 target_os = "motor" => {
3 use moto_rt::time as imp;
4 }
5 all(target_vendor = "fortanix", target_env = "sgx") => {
6 mod sgx;
7 use sgx as imp;
8 }
9 target_os = "solid_asp3" => {
10 mod solid;
11 use solid as imp;
12 }
13 target_os = "uefi" => {
14 mod uefi;
15 use uefi as imp;
16 }
17 any(
18 target_os = "hermit",
19 target_os = "teeos",
20 target_family = "unix",
21 target_os = "wasi",
22 ) => {
23 mod unix;
24 use unix as imp;
25 }
26 target_os = "vexos" => {
27 mod vexos;
28 #[expect(unused)]
29 mod unsupported;
30
31 mod imp {
32 pub use super::vexos::Instant;
33 pub use super::unsupported::{SystemTime, UNIX_EPOCH};
34 }
35 }
36 target_os = "windows" => {
37 mod windows;
38 use windows as imp;
39 }
40 target_os = "xous" => {
41 mod xous;
42 use xous as imp;
43 }
44 _ => {
45 mod unsupported;
46 use unsupported as imp;
47 }
48}
49
50pub use imp::{Instant, SystemTime, UNIX_EPOCH};