Lucifer has asked for the wisdom of the Perl Monks concerning the following question:
I've worked a bit with unix shell scripting. The problem here I see is that we've environmental variables for time in unix/perl so we cannot declare a variable and store a time into it (time in this specific format: 3min 55s, 4s 230ms ).
I've this "time" printed in the logs which I need to display in "seconds". Now, I can do it in another way like extracting this particular time as a string from the logs (string for example: processing completed in 7s 155ms.) and then operate on it. What I wanted to know is that is there any perl function to simplify this process.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Convert time into seconds
by Random_Walk (Prior) on Apr 23, 2013 at 14:45 UTC | |
by Lucifer (Initiate) on Apr 24, 2013 at 09:15 UTC | |
by Random_Walk (Prior) on Apr 24, 2013 at 10:01 UTC | |
by Lucifer (Initiate) on Apr 30, 2013 at 04:30 UTC | |
|
Re: Convert time into seconds
by blue_cowdawg (Monsignor) on Apr 23, 2013 at 14:29 UTC | |
|
Re: Convert time into seconds
by hardburn (Abbot) on Apr 23, 2013 at 14:26 UTC | |
|
Re: Convert time into seconds
by bioinformatics (Friar) on Apr 23, 2013 at 18:57 UTC | |
|
Re: Convert time into seconds
by sureshepuri (Initiate) on Apr 25, 2013 at 07:20 UTC | |
by Lucifer (Initiate) on Apr 30, 2013 at 09:14 UTC |