pub(crate) async fn advance_time(duration: time::Duration) {
    tokio::time::pause();
    tokio::time::advance(duration).await;
    tokio::time::resume();
    debug!("advanced time by {} secs", duration.as_secs());
}
/// Helper function to simulate the passage of time.
Helper function to simulate the passage of time.
Helper function to simulate the passage of time .
pub(crate) async fn advance_time(duration: time::Duration) {
    tokio::time::pause();
    tokio::time::advance(duration).await;
    tokio::time::resume();
    debug!("advanced time by {} secs", duration.as_secs());
}
pub ( crate ) async fn advance_time ( duration : time :: Duration ) { tokio :: time :: pause ( ) ; tokio :: time :: advance ( duration ) . await ; tokio :: time :: resume ( ) ; debug ! ( " " duration as_secs ( ) ) ; }
Helper function to simulate the passage of time.
Helper function to simulate the passage of time .
duration
time::Duration
duration
time::Duration