[R] measuring computation time

Taka Matzmoto
Fri, 27 Jan 2006 06:42:21 -0000

Hi R users

Is there any function or command for measureing computation time?

For example, if I like to how long it takes to generate 100000 random
numbers from a normal

distribution, Is there any command I can wrap up around
"rnorm(100000,0,1)"
and returns time

in a sec unit ?

Thanks

TM