The "limit framerate" thing?  There's a couple ways we could do it:
1) Simply turn on v-sync.
2) Check how long one loop/frame took to process, and just wait until we reach the time it takes to do 60fps, which would be around 16.66ms.