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.
Back to
Seekers of Perl Wisdom