measures time of move function