Fix cpu usage bug

std::chrono::seconds ( 1 ) / preferred_fps rounded to 0 seconds, which
meant it would not sleep at all. It needs to use a more accurate second,
then it works.