I’ve written a C++ program of which i would like to time the length of time it takes to complete – is there some terminal command i could use?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the “time” command available in most (maybe all) the linux distributions. It will print the time spent as system, as user, and the total time.
For example
will output something like
As you can see with the parenthesis you can launch every command chain you wish.