how to check which version of a code runs faster | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

how to check which version of a code runs faster

how to check which version of a code runs faster in c++, c#

6th Sep 2017, 7:41 PM
Muneeb Zubair Khan
Muneeb Zubair Khan - avatar
1 Answer
+ 2
Implement both, mark the initial and final time and make total time = final time - initial time. Spoiler alert: C++ is faster if both programs are optimized.
6th Sep 2017, 7:46 PM
Denis Felipe
Denis Felipe - avatar