new

Create a new unpaused Stopwatch with no elapsed time.

Examples

# use bevy_time::*;
let stopwatch = Stopwatch::new();
assert_eq!(stopwatch.elapsed_secs(), 0.0);
assert_eq!(stopwatch.is_paused(), false);

Arguments

Returns

  • arg0 : Stopwatch - No Documentation 🚧