6

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

8

Use time [programname].

Example:

host:~$ time dmesg

[massive gob of dmesg output]

real    0m2.630s
user    0m0.000s
sys     0m0.030s

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.