Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Reaped: please delete

by NodeReaper (Curate)
on May 24, 2002 at 07:34 UTC ( [id://168991]=note: print w/replies, xml ) Need Help??


in reply to YA newbie question: benchmarking your scripts?

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: R: solved indeed Re: YA newbie question: benchmarking your scripts?
by Juerd (Abbot) on May 24, 2002 at 07:40 UTC

    Your question is perfectly answered by the time function.

    Time::Stopwatch is a good module for this. Use it together with Time::HiRes for extreme precision.

    use Time::HiRes; use Time::Stopwatch; tie my $timer, 'Time::Stopwatch'; $timer = 0; sleep 2; print "That took $timer seconds.\n";

    - Yes, I reinvent wheels.
    - Spam: Visit eurotraQ.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-18 12:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found