Re: [R] system.time

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

From: Prof Brian Ripley (ripley@stats.ox.ac.uk)
Date: Mon 23 Jul 2001 - 22:59:31 EST


Message-id: <Pine.LNX.4.31.0107231353360.13314-100000@gannet.stats>

On Mon, 23 Jul 2001, Agustin Lobo wrote:

>
> The manual entry for system.time refers to
> "user, system, and total elapsed times for the currently running R
> process".
>
> Is user time the time spent by the process itself and system time the
> time spent on other system activities?

These are reported by your (presumably Unix?) system. Most likely both
times are spent by the R process, the `user' time in the user code space,
and the `system' time in kernel calls.

Look up the times system call on your system for the exact details.
For example, Solaris says

     The tms_utime member is the CPU time used while executing
     instructions in the user space of the calling process.

     The tms_stime member is the CPU time used by the system on
     behalf of the calling process.

On Unix-alikes, system.time calls proc.time whose C code calls times.

-- 
Brian D. Ripley,                  ripley@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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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:21 EST