I just ran a program and wish to know how much time it took to execute it. How do I do it?

link|improve this question

75% accept rate
feedback

1 Answer

up vote 5 down vote accepted

Use time [programname].

Example:

host:~$ time dmesg

[massive gob of dmesg output]

real    0m2.630s
user    0m0.000s
sys     0m0.030s
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.