[R] Summary of variations in how long commands take

About this list Date view Thread view Subject view Author view Attachment view

From: David Kane a296180@mica.fmr.com)
Date: Wed 18 Jul 2001 - 05:30:58 EST


Message-id: <15188.37490.166487.72961@gargle.gargle.HOWL>

Thanks to Guido Masarotto, Brain Ripley and Andy Liaw for (remarkably) quick
answers to my (stupid!) question. As all three noted, I should be using
system.time() instead of proc.time().

Andy also noted that he used constructions like:

my.f <- function(x) {
start <- proc.time()
[some steps]
now <- proc.time()
cat("first step took ",now-start," seconds.\n")
etc.
}

to examine timing within a given function.

Thanks again for a marvelous program.

Regards,

Dave Kane
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Wed 10 Mar 2004 - 08:18:20 EST