Why not use an array and save the elapsed time using tic and toc?
There is a nice example here .. use tic and toc if you need only to measure each iteration independently and use
start = tic; someCode; elapsed = toc(start);
which give you the option of running more than one stopwatch concurently