Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Get Time Diff *without* Date::Manip

by ehdonhon (Curate)
on Nov 17, 2003 at 17:36 UTC ( #307747=note: print w/ replies, xml ) Need Help??


in reply to Get Time Diff *without* Date::Manip

I guess it depends on what you mean by "External". The Benchmark module is part of the core Perl distro, and does exactly what you want. (from the pod):

use Benchmark; $t0 = new Benchmark; # ... your code here ... $t1 = new Benchmark; $td = timediff($t1, $t0); print "the code took:",timestr($td),"\n";


Comment on Re: Get Time Diff *without* Date::Manip
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-07-25 07:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (169 votes), past polls