in reply to Re^3: How to measure time for a particular code section?
in thread How to measure time for a particular code section?
Thank you for your answer.
I meant I waited too much to finish it. Additionally,
The code
gives different results with respect to benchmark. Sorry for any foolish comments.my $start_time = [Time::HiRes::gettimeofday()]; . . . my ($user, $system, $child_user, $child_system) = times; print "wall clock time was ", Time::HiRes::tv_interval($start_time), " +\n", "user time for $$ was $user\n", "system time for $$ was $system\n", "user time for all children was $child_user\n", "system time for all children was $child_system\n";
|
---|
In Section
Seekers of Perl Wisdom