pub fn update_metric_with_elapsed_time(metric: &SharedStoreMetric, start_time_us: u64) -> u64 {
    let delta_us = utils::time::get_time_us(utils::time::ClockType::Monotonic) - start_time_us;
    metric.store(delta_us as usize);
    delta_us
}
/// Helper function for updating the value of a store metric with elapsed time since some time in a past.
Helper function for updating the value of a store metric with elapsed time since some time in a past.
Helper function for updating the value of a store metric with elapsed time since some time in a past .
pub fn update_metric_with_elapsed_time(metric: &SharedStoreMetric, start_time_us: u64) -> u64 {
    let delta_us = utils::time::get_time_us(utils::time::ClockType::Monotonic) - start_time_us;
    metric.store(delta_us as usize);
    delta_us
}
pub fn update_metric_with_elapsed_time ( metric : & SharedStoreMetric , start_time_us : u64 ) -> u64 { let delta_us = utils :: time :: get_time_us ( utils :: time :: ClockType :: Monotonic ) - start_time_us ; metric . store ( delta_us as usize ) ; delta_us }
Helper function for updating the value of a store metric with elapsed time since some time in a past.
Helper function for updating the value of a store metric with elapsed time since some time in a past .
metric
&SharedStoreMetric
start_time_us
u64
metric
&SharedStoreMetric
start_time_us
u64