03-Jul-2023 19:56:45 tictoc_test(): MATLAB/Octave version 5.2.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 2.503e-06 399458 4 2.205e-06 453438 8 2.384e-06 419430 16 2.22e-06 450395 32 2.235e-06 447392 64 2.25e-06 444430 128 2.224e-06 449641 256 2.25e-06 444430 512 2.282e-06 438173 1024 2.256e-06 443237 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 1.90735e-06 seconds. Elapsed time is 1.97887e-05 seconds. Elapsed time is 2.69413e-05 seconds. Elapsed time is 3.29018e-05 seconds. Elapsed time is 3.98159e-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.0000028610 seconds Elapsed time is 0.0000050068 seconds Elapsed time is 0.0000078678 seconds Elapsed time is 0.0000100136 seconds Elapsed time is 0.0000128746 seconds tictoc_test(): Normal end of execution. 03-Jul-2023 19:56:45