Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
G'Day Monks,
I have a script that does some complex math and parsing. I need to be able to tell how long it took to do it's work. This should be relatively simple: just get a timestamp before I call the sub that does the work, then get another after, and use Date::Manip or Date::Calc to figure out the difference between the two. However, I'm in a situation where I am strictly not allowed to use any external modules. Is there a perlish way to accomplish this without using any modules? I thought perhaps someone had run into this before and could point me to a recipe...
I have a script that does some complex math and parsing. I need to be able to tell how long it took to do it's work. This should be relatively simple: just get a timestamp before I call the sub that does the work, then get another after, and use Date::Manip or Date::Calc to figure out the difference between the two. However, I'm in a situation where I am strictly not allowed to use any external modules. Is there a perlish way to accomplish this without using any modules? I thought perhaps someone had run into this before and could point me to a recipe...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Get Time Diff *without* Date::Manip
by Corion (Patriarch) on Nov 17, 2003 at 17:08 UTC | |
Re: Get Time Diff *without* Date::Manip
by ehdonhon (Curate) on Nov 17, 2003 at 17:36 UTC | |
Re: Get Time Diff *without* Date::Manip
by Anonymous Monk on Nov 17, 2003 at 17:19 UTC | |
Re: Get Time Diff *without* Date::Manip
by meetraz (Hermit) on Nov 17, 2003 at 18:10 UTC |
Back to
Seekers of Perl Wisdom