Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am using the gpp-compiler package to run my C/C++ codes.
Is there a way to have this output:

Hello, world
Process returned 0 (0*0) execution time : 0.135s
Press any key to continue.

Currently, it doesn’t show me what the process returned nor the execution time.

What I have tried:

Hello, world 
Process returned 0 (0*0)    execution time : 0.135s
Press any key to continue.
Posted
Updated 11-May-20 2:08am
Comments
Richard MacCutchan 11-May-20 7:44am    
You need to add the code to produce that output.

1 solution

If you are using Linux then bash could help you:The exit code of your process is in the $? variable while /usr/bin/time command can print the execution time of your process using the given format.
You are encouraged to read the relative documentation.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900