This is a public function that provides a method for returning the time that the system has been active.
()
| 32 | // This is a public function that provides a method for returning the time that the system has been |
| 33 | // active. |
| 34 | pub 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. |
no test coverage detected