fn timespec_to_ns(ts: libc::timespec) -> u64 {
(ts.tv_sec as u64) * NS_PER_S + (ts.tv_nsec as u64)
}
/// The time from a clock that cannot be set /// and represents monotonic time since some unspecified starting point, /// that also includes any time that the system is suspended. /// /// See [`clock_gettime`]. /// /// [`clock_gettime`]: https://manpages.debian.org/buster/manpages-dev/clock_gettime.3.en.html pubfn now_including_suspend() -> u64 { letmut ts = libc::timespec {
tv_sec: 0,
tv_nsec: 0,
}; unsafe {
libc::clock_gettime(libc::CLOCK_BOOTTIME, &mut ts);
}
timespec_to_ns(ts)
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-06-19)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.