pub fn new_with<R>(reservoir: R, clock: Arc<dyn Clock>) -> Self
    where
        R: Reservoir,
    {
        Timer {
            meter: Meter::new_with(clock.clone()),
            reservoir: Box::new(reservoir),
            clock,
        }
    }
/// Creates a new timer using the provided [`Clock`] as its time source.
Creates a new timer using the provided [`Clock`] as its time source.
Creates a new timer using the provided [ ` Clock ` ] as its time source .
pub fn new_with<R>(reservoir: R, clock: Arc<dyn Clock>) -> Self
    where
        R: Reservoir,
    {
        Timer {
            meter: Meter::new_with(clock.clone()),
            reservoir: Box::new(reservoir),
            clock,
        }
    }
pub fn new_with < R > ( reservoir : R , clock : Arc < dyn Clock > ) -> Self where R : Reservoir , { Timer { meter : Meter :: new_with ( clock . clone ( ) ) , reservoir : Box :: new ( reservoir ) , clock , } }
Creates a new timer using the provided [`Clock`] as its time source.
Creates a new timer using the provided [ ` Clock ` ] as its time source .
reservoir
R
clock
Arc<dyn Clock>
reservoir
R
clock
Arc<dyn Clock>