lastTime update after calculations