Struct rust_clock::Clock
[−]
[src]
pub struct Clock { /* fields omitted */ }
Methods
impl Clock
[src]
fn new() -> Clock
Create a new clock.
fn set_time_ms(&mut self, ms: i64)
Set the clock time in milliseconds.
ms
- Milliseconds to set time from.
fn set_time_secs(&mut self, seconds: i64)
Set the clock time in seconds.
seconds
- Seconds to set time from.
fn get_time(&self) -> String
Get the clock time in hh:mm:ss notation.