Extracted measure time stuff to addTime function inside update function