use ;
/// Sleep for a single frame at the declared FPS, subtracting the input `Duration` to account for any time spent processing the frame. Returns a bool value depending on whether or not the frame took longer to render than the intended fps
/// # Example
/// ```rust,no_run
/// use gemini_engine::gameloop;
///
/// let mut frame_skip = false;
/// const FPS: f32 = 60.0;
/// loop {
/// let now = gameloop::Instant::now();
///
/// // all code here will run at 60 FPS
///
/// if frame_skip {
/// frame_skip = false;
/// } else {
/// // calculations and rendering
/// }
///
/// frame_skip = gameloop::sleep_fps(FPS, Some(now.elapsed()));
/// }