This command produces no output. It causes the computer to remember the current time internally. When the computer reaches the first toc command, it displays the elapsed time.
tic for k=1:5 c=sqrt(k); end toc
time, toc.