16-May-2025 09:23:56 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 2.861e-06 349525 2 2.027e-06 493448 4 1.49e-06 671089 8 1.49e-06 671089 16 1.431e-06 699051 32 1.393e-06 717742 64 1.468e-06 681308 128 1.429e-06 699962 256 1.803e-06 554619 512 1.471e-06 679799 1024 1.515e-06 660155 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 2.5034e-05 seconds. Elapsed time is 2.88486e-05 seconds. Elapsed time is 3.38554e-05 seconds. Elapsed time is 3.79086e-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.0000040531 seconds Elapsed time is 0.0000050068 seconds Elapsed time is 0.0000071526 seconds Elapsed time is 0.0000081062 seconds tictoc_test(): Normal end of execution. 16-May-2025 09:23:56