MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / uptime

Function uptime

src/clock.rs:34–37  ·  view source on GitHub ↗

This is a public function that provides a method for returning the time that the system has been active.

()

Source from the content-addressed store, hash-verified

32// This is a public function that provides a method for returning the time that the system has been
33// active.
34pub fn uptime() -> f64
35{
36 time::time_between_ticks() * time::tick() as f64
37}
38
39
40// This function provides the ability to display the day before the year.

Callers 1

sleepFunction · 0.70

Calls 2

time_between_ticksFunction · 0.85
tickFunction · 0.85

Tested by

no test coverage detected