Home License -- for personal use only. Not for government, academic, research, commercial, or other organizational use. 08-Oct-2025 01:47:19 tictoc_test(): MATLAB/Octave version 9.11.0.2358333 (R2021b) Update 7 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 5.7e-05 1.754386e+04 2 9e-06 1.111111e+05 4 1.7e-05 5.882353e+04 8 6.25e-06 160000 16 3.125e-07 3.200000e+06 32 2.187e-07 4.571429e+06 64 1.875e-07 5.333333e+06 128 1.875e-07 5.333333e+06 256 1.914e-07 5.224490e+06 512 1.816e-07 5.505376e+06 1024 1.914e-07 5.224490e+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.000016 seconds. Elapsed time is 0.000128 seconds. Elapsed time is 0.000146 seconds. Elapsed time is 0.000160 seconds. Elapsed time is 0.000173 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.0000100000 seconds Elapsed time is 0.0000200000 seconds Elapsed time is 0.0000240000 seconds Elapsed time is 0.0000280000 seconds Elapsed time is 0.0000320000 seconds tictoc_test(): Normal end of execution. 08-Oct-2025 01:47:19