Function ggez::timer::sleep

source ·
pub fn sleep(duration: Duration)
Expand description

Pauses the current thread for the target duration. Just calls std::thread::sleep() so it’s as accurate as that is (which is usually not very).