Jan 172010
How to measure the time needed to execute a command
Answer:
Use the time command, e.g.
# time perl -e 'sleep 5'
real 0m5.026s
user 0m0.010s
sys 0m0.020s
The above perl command takes around 5 seconds to execute.
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to measure the time needed to execute a command
Answer:
Use the time command, e.g.
# time perl -e 'sleep 5'
real 0m5.026s
user 0m0.010s
sys 0m0.020s
The above perl command takes around 5 seconds to execute.