Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^4: How to measure time for a particular code section?

by abdullah.yildiz (Novice)
on Nov 24, 2012 at 22:07 UTC ( #1005431=note: print w/replies, xml ) Need Help??


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
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";
gives different results with respect to benchmark. Sorry for any foolish comments.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005431]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2017-03-26 10:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (315 votes). Check out past polls.