Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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]
Required, but never shown