% FUNCTION CHRONO_STOP(CHRONO) function chrono_stop(chrono) finish_time = 1e5 * now; elapsed_time = finish_time - chrono.start_time; speed = chrono.n / elapsed_time; s = '%d iterations in %.3f sec: %.3f iterations per sec'; disp(sprintf(s, chrono.n, elapsed_time, speed));