Add basic FPS measurement routines.