Creating an object to track framerate.