[R] Question about mesurating time

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jun 30 11:10:11 CEST 2004


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




More information about the R-help mailing list