Function macroquad::time::get_time[][src]

pub fn get_time() -> f64
Expand description

Returns elapsed wall-clock time in seconds since start

Note that as real world time progresses during computation, the value returned will change. Therefore if you want your game logic update to happen at the same in-game time for all game objects, you should call this function once save the value and reuse it throughout your code.