Timing a processby ukndoit (Sexton)
|on Jan 31, 2004 at 05:41 UTC||Need Help??|
ukndoit has asked for the
wisdom of the Perl Monks concerning the following question:
I am new to perl and am trying to make a script which will get the starting time, and the ending time, and then tell me how long it took to run the whole thing, ending subtract beginning = how many hours, minutes and seconds...
I have figured out I could start it like this,
So, if I did that, and then subtracted the ending from the begging, how would I turn that into x amount of hours, x amount of minutes, and x amount of seconds?
Please forgive my ignorance. I'm trying to learn, but I'm teaching myself. I've read a lot, but cannot figure this out. I'm very tired, I guess that could be causin it.
Anyways, thank you much for filling me in.