get_btime

Function get_btime 

Source
pub fn get_btime() -> DateTime<Utc>
Expand description

Get the btime (boot time) by subtract the current uptime from the current unix epoch timestamp.

use mprober_lib::btime;

let btime = btime::get_btime();

println!("{btime}");