/// Creates a new `SimulatedDateTime` that increases strictly monoton on every call.
///
/// # Parameters
///
/// * `stride` - the `Duration` that is passing between two subsequent calls
/// * `max_simulated_time` - the maximum length of the simulation
///
/// # Panics
///
/// If the `stride` is smaller or equal to zero.
Creates a new `SimulatedDateTime` that increases strictly monoton on every call.
Creates a new ` SimulatedDateTime ` that increases strictly monoton on every call .
pub fn new(stride: Duration, max_simulated_time: Duration) -> Self {
        if stride <= Duration::zero() {
            panic!("The simulated time must increase strictly monoton!");
        }
        let starting_time = Utc::now();
        SimulatedDateTime {
            starting_time,
            current_time: starting_time,
            stride,
            max_simulated_time,
        }
    }
pub fn new ( stride : Duration , max_simulated_time : Duration ) -> Self { if stride <= Duration :: zero ( ) { panic ! ( " " ) ; } let starting_time = Utc :: now ( ) ; SimulatedDateTime { starting_time , current_time : starting_time , stride , max_simulated_time , } }
Creates a new `SimulatedDateTime` that increases strictly monoton on every call.
Creates a new ` SimulatedDateTime ` that increases strictly monoton on every call .
stride
Duration
max_simulated_time
Duration
panics
If the `stride` is smaller or equal to zero.
If the ` stride ` is smaller or equal to zero .