heim_host/
boot_time.rs

1
2
3
4
5
6
7
8
9
10
11
12
use heim_common::prelude::*;

use crate::{sys, Time};

/// Returns future which resolves into the system boot [Time]
/// since the UNIX epoch.
///
/// [Time]: ./struct.Time.html
pub fn boot_time() -> impl Future<Output = Result<Time>> {
    // TODO: Cache the successful value, as it can't change later
    sys::boot_time()
}