From pinard at iro.umontreal.ca  Sun May 14 22:29:44 2006
From: pinard at iro.umontreal.ca (=?iso-8859-1?Q?Fran=E7ois?= Pinard)
Date: Sun, 14 May 2006 16:29:44 -0400
Subject: [Rd] Suggestion for system.time()
In-Reply-To: <m21wuwqtxh.fsf@ziti.local>
References: <20060514140852.GA8854@phenix.sram.qc.ca>
	<m21wuwqtxh.fsf@ziti.local>
Message-ID: <20060514202944.GA28762@alcyon.progiciels-bpi.ca>

[Seth Falcon]
>[Fran?ois Pinard]

>> Hi, people.  A tiny suggestion for the system.time function.
>> Could the returned vector have names?  These could be like:
>>    c("User", "System", "Elapsed", "Sub.User", "Sub.System")
>> That would then produce self-documenting output.

>Here's a function you could try.  It names the result as you
>suggested.  It also can be nested, which system.time cannot, because
>it uses on.exit without specifying add=TRUE.

Thanks, Seth.  Your code could be useful, I'm saving it. :-)

Just to be clear, my suggestion was more thought as a small benefit for 
the community of R users, rather than for myself alone.

-- 
Fran?ois Pinard   http://pinard.progiciels-bpi.ca



[Rd] Suggestion for system.time()
=?iso-8859-1?Q?Fran=E7ois?= Pinard