pub fn advance_clock(
    server: Option<&mut Engine<TestRuntime>>,
    client: Option<&mut Engine<TestRuntime>>,
    now: &mut Instant,
) {
    *now += Duration::from_secs(1);
    if let Some(server) = server {
        server.rt().advance_clock(*now);
    }
    if let Some(client) = client {
        client.rt().advance_clock(*now);
    }
}
/// Advances clock by one second.
Advances clock by one second.
Advances clock by one second .
pub fn advance_clock(
    server: Option<&mut Engine<TestRuntime>>,
    client: Option<&mut Engine<TestRuntime>>,
    now: &mut Instant,
) {
    *now += Duration::from_secs(1);
    if let Some(server) = server {
        server.rt().advance_clock(*now);
    }
    if let Some(client) = client {
        client.rt().advance_clock(*now);
    }
}
pub fn advance_clock ( server : Option < & mut Engine < TestRuntime > > , client : Option < & mut Engine < TestRuntime > > , now : & mut Instant , ) { * now += Duration :: from_secs ( 1 ) ; if let Some ( server ) = server { server . rt ( ) . advance_clock ( * now ) ; } if let Some ( client ) = client { client . rt ( ) . advance_clock ( * now ) ; } }
Advances clock by one second.
Advances clock by one second .
server
Option<&mut Engine<TestRuntime>>
client
Option<&mut Engine<TestRuntime>>
now
&mut Instant
server
Option<&mut Engine<TestRuntime>>
client
Option<&mut Engine<TestRuntime>>
now
&mut Instant