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.
In reply to Convert time into seconds by Lucifer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |