updating inline time - addTime function