/// Update time to the new system time value.
///
/// It will skip the update and return an error if the new system time is
/// less than the previous value.
Update time to the new system time value.
It will skip the update and return an error if the new system time is
less than the previous value.
Update time to the new system time value . It will skip the update and return an error if the new system time is less than the previous value .
pub fn update_time(&self) -> Result<(), TimeNotMonotoneError> {
        let mut current_time = self.current_time.write().unwrap();
        let t = system_time_now();
        if *current_time > t {
            Err(TimeNotMonotoneError)
        } else {
            *current_time = t;
            Ok(())
        }
    }
pub fn update_time ( & self ) -> Result < ( ) , TimeNotMonotoneError > { let mut current_time = self . current_time . write ( ) . unwrap ( ) ; let t = system_time_now ( ) ; if * current_time > t { Err ( TimeNotMonotoneError ) } else { * current_time = t ; Ok ( ( ) ) } }
Update time to the new system time value.
Update time to the new system time value .
&self