Hi, all,

How to get a time as a number?

While script is running, I want to print the elapsed time

something like TIME_AS_SECOND() in the following script

inittime <- TIME_AS_SECOND()
for (i in 1:100){
    do_something(i)
    curtime <- TIME_AS_SECOND()
    elapsedtime <- curtime-inittime
    print(paste(i, elapsedtime))
}

Thanks in advance,

Hyunchul

	[[alternative HTML version deleted]]

