Home License -- for personal use only. Not for government, academic, research, commercial, or other organizational use. 13-May-2025 18:48:41 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 6.6e-05 1.515152e+04 2 1e-05 1.000000e+05 4 2e-05 5.000000e+04 8 6.75e-06 1.481481e+05 16 2.5e-07 4000000 32 1.562e-07 6.400000e+06 64 2.344e-07 4.266667e+06 128 1.875e-07 5.333333e+06 256 1.992e-07 5.019608e+06 512 1.836e-07 5.446809e+06 1024 1.846e-07 5.417989e+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.000131 seconds. Elapsed time is 0.000149 seconds. Elapsed time is 0.000164 seconds. Elapsed time is 0.000179 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.0000110000 seconds Elapsed time is 0.0000200000 seconds Elapsed time is 0.0000250000 seconds Elapsed time is 0.0000290000 seconds Elapsed time is 0.0000330000 seconds tictoc_test(): Normal end of execution. 13-May-2025 18:48:41