heim_host/
boot_time.rs

1use heim_common::prelude::*;
2
3use crate::{sys, Time};
4
5/// Returns future which resolves into the system boot [Time]
6/// since the UNIX epoch.
7///
8/// [Time]: ./struct.Time.html
9pub fn boot_time() -> impl Future<Output = Result<Time>> {
10    // TODO: Cache the successful value, as it can't change later
11    sys::boot_time()
12}