I will create a script which uses only real time values from time commands, so that I can plot the results. For example time command
output
real 1m0.001s user 1m0.000s sys 0m0.001s
I want to write Script which outputs
60.001
How do I get real time values from the 'time' command in seconds?
according to man time
, should do the following:
time
with your path Call: $ / Usr / bin / time -f "% e" sleep 5 5.00
Without the path, this is something like bash With the path being used equal to
, it works for me.
Comments
Post a Comment