Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 imbibing at the Monastery: (14)
As of 2015-07-02 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (45 votes), past polls