Skip to content

Commit

Permalink
is_
Browse files Browse the repository at this point in the history
  • Loading branch information
maniwani committed Oct 20, 2022
1 parent d20c3c0 commit 5eeea40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/bevy_time/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ impl Time {

/// Returns `true` if time has been paused.
#[inline]
pub fn paused(&self) -> bool {
pub fn is_paused(&self) -> bool {
self.paused
}
}
Expand Down Expand Up @@ -661,12 +661,12 @@ mod tests {
let first_update_instant = Instant::now();
time.update_with_instant(first_update_instant);

assert!(!time.paused());
assert!(!time.is_paused());
assert_eq!(time.relative_speed(), 1.0);

time.pause();

assert!(time.paused());
assert!(time.is_paused());
assert_eq!(time.relative_speed(), 0.0);

let second_update_instant = Instant::now();
Expand All @@ -684,7 +684,7 @@ mod tests {

time.unpause();

assert!(!time.paused());
assert!(!time.is_paused());
assert_eq!(time.relative_speed(), 1.0);

let third_update_instant = Instant::now();
Expand Down

0 comments on commit 5eeea40

Please sign in to comment.