pub fn from_seconds(duration: f32, repeating: bool) -> Self {
        Self {
            duration: Duration::from_secs_f32(duration),
            repeating,
            ..Default::default()
        }
    }
/// Creates a new timer with a given duration in seconds.
///
/// # Example
/// ```
/// # use bevy_core::*;
/// let mut timer = Timer::from_seconds(1.0, false);
/// ```
Creates a new timer with a given duration in seconds.
Creates a new timer with a given duration in seconds .
pub fn from_seconds(duration: f32, repeating: bool) -> Self {
        Self {
            duration: Duration::from_secs_f32(duration),
            repeating,
            ..Default::default()
        }
    }
pub fn from_seconds ( duration : f32 , repeating : bool ) -> Self { Self { duration : Duration :: from_secs_f32 ( duration ) , repeating , .. Default :: default ( ) } }
Creates a new timer with a given duration in seconds.
Creates a new timer with a given duration in seconds .
duration
f32
repeating
bool
duration
f32
repeating
bool
example
None
use bevy_core::*;
let mut timer = Timer::from_seconds(1.0, false);
```
let mut timer = Timer :: from_seconds ( 1 . 0 false ) ; ` ` `