ticktock makes it very easy to access frame-timing iterators to achieve constant framerates:
ticktock
rust // run with a constant framerate of 30 fps for (tick, now) in Clock::framerate(30.0).iter() { // ... }
See the documentation for details.