made gauge return time when finished

gauge returns time at which the measurement will be finished, get checks if the measurments is finished and if not waits until it is