Function punctual_sleep::sleep

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

Calls platform specific precise sleeping routine for specified platform. Note that it is just a convenient (and safe) wrapper over creating Sleeper and calling Sleeper::sleep so it may be more effecient to create Sleeper once and keep it. However, cost of creating Sleepers are not very high so you can safely ignore it.