I have a script thats acting funky, what I would like to do is report to a file, how long its taking to get to certain area's, in seconds. For example.
Thanks Jim I will take a look. I think my script might be too complicated for it though unless you can store the time result somewhere and continually add to it, but this is a good start and something to chew on.
SECONDS
Each time this variable is referenced, the number of
seconds since shell invocation is returned. If this
variable is assigned a value, then the value returned
upon reference will be the value that was assigned
plus the number of seconds since the assignment.
Save the value of $SECONDS before your process starts and compare to $SECONDS once your process completes.