heim_host/
uptime.rs

1use heim_common::prelude::*;
2
3use crate::{sys, Time};
4
5/// Returns future which resolves into [Time] amount from the system boot.
6///
7/// [Time]: ./struct.Time.html
8pub fn uptime() -> impl Future<Output = Result<Time>> {
9    sys::uptime()
10}