PDA

View Full Version : Time your programs



Beezleray
April 3rd, 2009, 08:13 PM
Hi, whenever I see people post test results for their code, they always have the time it took to compile, or the time it took to run. Is there a program that records this or is it in their code (specifically looking for C++).
Thanks!

xzero1
April 3rd, 2009, 08:20 PM
See the time command.

Kinney
April 3rd, 2009, 08:20 PM
There is a time command, maybe that's what your looking for.

Just type the application after the time command.


$ time program

Beezleray
April 3rd, 2009, 08:25 PM
That's it! Thanks guys.