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


Use time [programname].


host:~$ time dmesg

[massive gob of dmesg output]

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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