From: David Kane
Thanks to Guido Masarotto, Brain Ripley and Andy Liaw for (remarkably) quick
Andy also noted that he used constructions like:
my.f <- function(x) {
to examine timing within a given function.
Thanks again for a marvelous program.
Regards,
Dave Kane
This archive was generated by hypermail 2.1.3
: Wed 10 Mar 2004 - 08:18:20 EST
Date: Wed 18 Jul 2001 - 05:30:58 EST
Message-id: <15188.37490.166487.72961@gargle.gargle.HOWL>
answers to my (stupid!) question. As all three noted, I should be using
system.time() instead of proc.time().
start <- proc.time()
[some steps]
now <- proc.time()
cat("first step took ",now-start," seconds.\n")
etc.
}
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._