08-Oct-2025 20:43:25 tictoc_test(): MATLAB/Octave version 6.4.0 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 3.099e-06 322639 2 1.073e-06 932068 4 1.49e-06 671089 8 1.49e-06 671089 16 1.296e-06 771366 32 1.334e-06 749820 64 1.404e-06 712030 128 1.587e-06 630130 256 1.415e-06 706874 512 1.441e-06 694080 1024 1.459e-06 685221 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 2.86102e-06 seconds. Elapsed time is 3.60012e-05 seconds. Elapsed time is 4.1008e-05 seconds. Elapsed time is 4.60148e-05 seconds. Elapsed time is 5.10216e-05 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.0000021458 seconds Elapsed time is 0.0000050068 seconds Elapsed time is 0.0000071526 seconds Elapsed time is 0.0000090599 seconds Elapsed time is 0.0000100136 seconds tictoc_test(): Normal end of execution. 08-Oct-2025 20:43:25