changed elapsed time in obstacle.m