This is probably a silly question, but I’d like to time a sequence of commands. I know that I can use
@time statement, but how do I time a sequence of statements?
@time statement 1 statement 2 … statement n
So – how do I bracket the statements so that Julia times the total execution time?
[I dug up some MATLAB code from 1993 or so… at that time, MATLAB took 7 hours to solve the problem on a DECStation 3000… Today, MATLAB took ca. 9 seconds to solve the same problem on my desktop… I did a crude rewrite into Julia, and my guesstimate is ca. 5 seconds in Julia, but I’d like to know.]