Suggestion for system.time()
[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