Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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.


Comment on Re^4: How to measure time for a particular code section?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005431]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2014-09-01 21:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (17 votes), past polls