pub fn start_timer(tx: Sender<Instant>) -> Result<(), std::sync::mpsc::SendError<Instant>> {
    let start_time = Instant::now();
    tx.send(start_time)?;
    Ok(())
}
/// Starts a timer which sends itself to the main thread.
Starts a timer which sends itself to the main thread.
Starts a timer which sends itself to the main thread .
pub fn start_timer(tx: Sender<Instant>) -> Result<(), std::sync::mpsc::SendError<Instant>> {
    let start_time = Instant::now();
    tx.send(start_time)?;
    Ok(())
}
pub fn start_timer ( tx : Sender < Instant > ) -> Result < ( ) , std :: sync :: mpsc :: SendError < Instant > > { let start_time = Instant :: now ( ) ; tx . send ( start_time ) ? ; Ok ( ( ) ) }
Starts a timer which sends itself to the main thread.
Starts a timer which sends itself to the main thread .
tx
Sender<Instant>
tx
Sender<Instant>