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

1 Answer 1


Use time [programname].


host:~$ time dmesg

[massive gob of dmesg output]

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .