boot-tree: live systemd boot dependency tree on a dedicated VT
This commit is contained in:
commit
097caf81a2
24 files changed
+4817
No files matched your search
@@ -0,0 +1,15 @@
|
||||
use rustix::{
|
||||
system::uname,
|
||||
time::{ClockId, clock_gettime},
|
||||
};
|
||||
|
||||
use crate::model::Micros;
|
||||
|
||||
pub fn monotonic_now() -> Micros {
|
||||
let now = clock_gettime(ClockId::Monotonic);
|
||||
now.tv_sec as Micros * 1_000_000 + now.tv_nsec as Micros / 1_000
|
||||
}
|
||||
|
||||
pub fn host_name() -> String {
|
||||
uname().nodename().to_string_lossy().into_owned()
|
||||
}
|
||||
Reference in new issue
Block a user