Fixed DivideByZeroException

Fixed a DivideByZeroException that would occur if currentTime-lastTime =
0 when calculating the framerate.