Skip to content
Prev 308525 / 398506 Next

system.time question

On 20/10/2012 17:16, Mark Leeds wrote:
Yes, the help page can, via ?proc.time.  As it says, it depends on the OS
On Fedora Linux, yes.  Not in general (and what ps gives is pretty 
OS-specific: for example, does it include time from child processes or 
not -- system.time should but the OS calls used do not always do so, I 
find less reliably so in Fedora 16 than 14).
Many, many reasons.  Most likely

- other things are running, and some of them have a higher priority, or 
equal or lower priority and get lots of time slices ....

- R the process is waiting for resources, such as memory, discs, network 
access ....
It depends on the purpose.  CRAN's check farm cares most about CPU 
usage: someone waiting for results cares about elapsed time.