updated time method, and the FPS counter