08-Jan-2022 10:32:50 tictoc_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test tictoc(). tictoc_resolution_test(): Estimate the resolution of the TIC/TOC functions by calling N times and averaging. N Seconds/Tick Ticks/Second 1 5e-05 20000 2 1.3e-05 7.692308e+04 4 1.625e-05 6.153846e+04 8 6e-06 1.666667e+05 16 1.875e-07 5.333333e+06 32 1.875e-07 5.333333e+06 64 1.406e-07 7.111111e+06 128 1.484e-07 6.736842e+06 256 1.758e-07 5.688889e+06 512 1.621e-07 6.168675e+06 1024 1.67e-07 5.988304e+06 tictoc_printing_test(): We can estimate the resolution of the TIC/TOC call by calling them one after the other, with no work in between. So calling TIC, and then calling TOC several times, might seem to give us more estimates to compare. However, we must realize that calling TOC with the printing option adds the printing time to the next measurement of elapsed time. A: Call TIC once, then call TOC five times. Elapsed time is 0.000014 seconds. Elapsed time is 0.000121 seconds. Elapsed time is 0.000140 seconds. Elapsed time is 0.000156 seconds. Elapsed time is 0.000172 seconds. B: Call TIC once, then call T=TOC five times, storing the value. Afterwards, print the five values. Notice that calling the "printing" TOC adds the printing time to the next elapsed time. Elapsed time is 0.0000090000 seconds Elapsed time is 0.0000190000 seconds Elapsed time is 0.0000230000 seconds Elapsed time is 0.0000270000 seconds Elapsed time is 0.0000310000 seconds tictoc_test(): Normal end of execution. 08-Jan-2022 10:32:50