+ 2

How to add to the output the time taken by our code to compile and run...

my friend who is interested in the c++ coding asked about this to me and I couldn't answer him. Can anyone help me with the answer?

13th Feb 2018, 5:34 AM
Ayush Kumar
Ayush Kumar - avatar
3 Respuestas
+ 2
Do you mean on your own computer? You could write script to: get the system time then compile the code then run the code. then get the system time and calculate the difference.
13th Feb 2018, 7:30 AM
Jared Bird
Jared Bird - avatar
0
Thanks for the great idea ! It worked
28th Dec 2018, 1:31 PM
Ayush Kumar
Ayush Kumar - avatar
0
Glad it worked for you.
28th Dec 2018, 8:33 PM
Jared Bird
Jared Bird - avatar