in reply to Timing a process

More general, if you want to time and benchmark your code, have a look at Benchmark.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law