From iacob at ceremade.dauphine.fr  Mon Feb  4 16:45:04 2008
From: iacob at ceremade.dauphine.fr (iacob at ceremade.dauphine.fr)
Date: Mon,  4 Feb 2008 16:45:04 +0100 (CET)
Subject: [Rd] maybe a bug in the system.time() function? (PR#10696)
Message-ID: <20080204154504.1BC812834612@mail.pubhealth.ku.dk>

Full_Name: Alessandra Iacobucci
Version: 2.5.1
OS: Mac OS X 10.4.11
Submission from: (NULL) (193.48.71.92)


Hi,
I am making some intensive simulations for the testing of a Population Monte
Carlo algorithm. This involves also a study of the CPU times in two different
case.
What I am trying to measure is the "real" CPU time, the one which is independent
on the %CPU. 

I'm using the "system.time" function with gcFirst=TRUE and I realized that all
of the output values (user, system and elapsed) depend on the percentage of the
CPU, meaning that if your program is the only one running on the machine,
system.time() gives you  certain values, and if there are many programs running
at the same time, for the exact same simulation system.time() gives you much
higher values.

Thanks for you answer.

Best regards,

Alessandra Iacobucci



[Rd] maybe a bug in the system.time() function? (PR#10696)
iacob at ceremade.dauphine.fr