gone2015 has asked for the wisdom of the Perl Monks concerning the following question:
So, I tried timing some code using 'times'.
Perhaps I should know better, but I'm disappointed by the resolution this gives me. Am I stuck with this, or is there some alternative that the assembled experts can point me towards... ?
I find that CLOCKS_PER_SEC is 1000000l, which looks hopeful, but getconf CLK_TCK gives just 100 -- which matches what I get :-(
POSIX::times() doesn't help. Perhaps this is a kernel issue ?
Thanks.
BTW, the Benchmark module doesn't apply. I'm trying to time the same code over lots of different input data sets, not compare different code over the same input data set.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Anything better than 'times' ?
by moritz (Cardinal) on Sep 17, 2008 at 14:36 UTC | |
by gone2015 (Deacon) on Sep 17, 2008 at 18:18 UTC | |
|
Re: Anything better than 'times' ?
by grinder (Bishop) on Sep 17, 2008 at 20:39 UTC |