Linux Tips and Tricks

Linux Tips and Tricks

Calculate the execution time for a script or command

October20

You can use time to find out he execution time of any command or script

Example:

1
2
3
4
5
6
$ time ls
01 - Veera.Mp3 02 - Usure Pogudhey.Mp3 03 - Kodu Poatta.Mp3 04 - Kaattu Sirukki.Mp3 05 - Kalvare.Mp3 06 - Keda Kari.Mp3
 
real 0m0.004s
user 0m0.000s
sys 0m0.004s

In the above example the time taken by the ls command is 0.004s

posted under Uncategorized

Email will not be published

Website example

Your Comment:


Recent Comments

    Categories