+ 2

How can I check Execution Time in C++ ? // In Turbo c++ not in other ide's like Code blocks

9th Aug 2017, 3:03 AM
Arvind Singh Rawat
Arvind Singh Rawat - avatar
6 Réponses
+ 6
You'll have to rely on clocks and difftime functions from the header ctime, as chrono isn't available in Turbo C++... //Why do you still use it? www.cplusplus.com/reference/ctime/clock
11th Aug 2017, 1:04 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 4
I believe it can be done in Visual Studio, when you debug C++ code.
9th Aug 2017, 3:40 AM
Manual
Manual - avatar
+ 4
Also using turbo c++ is a mistake. If you like try using VS https://www.sololearn.com/discuss/410578/?ref=app
9th Aug 2017, 3:42 AM
Manual
Manual - avatar
+ 4
Try <chrono>. In cppreference.com you can find an example of use to measure computer time. Just google "cpp reference chrono".
9th Aug 2017, 4:54 PM
Denis Felipe
Denis Felipe - avatar