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

use crate::{sys, Time};

/// Returns future which resolves into [Time] amount from the system boot.
///
/// [Time]: ./struct.Time.html
pub fn uptime() -> impl Future<Output = Result<Time>> {
    sys::uptime()
}