ticinitialized the elapsed timer to zero. The function
tocreturns the number of seconds since the previous call to
ticas a double-precision scalar.
endcommands are used to makes the elapsed time correspond to just execution and not compilation time. (Execution does not take place until the entire block is compiled.)
X = rand(300, 300)
X * X;