|
Contents | Previous | Next | Subchapters |
| Syntax |
tic |
toc | |
| See Also | clock |
tic initialized the elapsed timer to zero.
The function toc returns the number of seconds
since the previous call to tic as a double-precision scalar.
begin and end commands 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.)
begin
X = rand(300, 300)
tic
X * X;
toc
end