fork(2) download
  1. function f(t)
  2. tic;while toc<t,end
  3.  
  4. end % this is needed in the online interpreter only, to separate function from interpreter commands
  5.  
  6. tic,f(1),toc % f(1) should introduce a 1-second stop. tic and toc will measure it
Success #stdin #stdout 1.17s 65048KB
stdin
Standard input is empty
stdout
Elapsed time is 1.00002 seconds.