Struct iota_lib_rs::utils::StopWatch[][src]

pub struct StopWatch { /* fields omitted */ }

Provides a stopwatch for measuring how long things take... this might seem like a weird addition to the library, but it was in Jota...so I put it here. If no one uses this, I'll probably remove it later.

Methods

impl StopWatch
[src]

Creates a new stopwatch

Restarts the stopwatch

Stops the stopwatch and returns the duration

Pauses the stopwatch

Resumes the stopwatch

Returns the elapsed time so far

Checks whether the stopwatch is running

Trait Implementations

impl Copy for StopWatch
[src]

impl Clone for StopWatch
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for StopWatch
[src]

Formats the value using the given formatter. Read more

impl Default for StopWatch
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for StopWatch

impl Sync for StopWatch