Hello , Is there any function to mesurate the duration of a procedure (like tic and toc in matlab) ? Tic Source("procedure.R") Toc (toc is the duration between the execution of tic and the execution of toc) Thank you nicolas [[alternative HTML version deleted]]
?system.time *********** REPLY SEPARATOR *********** On 30.06.2004 at 10:59 zze-PELAY Nicolas FTRD/DMR/BEL wrote:>Hello , >Is there any function to mesurate the duration of a procedure (like tic >and toc in matlab) ? > >Tic >Source("procedure.R") >Toc > >(toc is the duration between the execution of tic and the execution of >toc) > >Thank you > >nicolas > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
help.search("time") gives proc.time(base) Running Time of R system.time(base) CPU Time Used both of which could be used. On Wed, 30 Jun 2004, zze-PELAY Nicolas FTRD/DMR/BEL wrote:> Is there any function to mesurate the duration of a procedure (like tic > and toc in matlab) ? > > Tic > Source("procedure.R") > Toc > > (toc is the duration between the execution of tic and the execution of > toc)-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595