Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję+ 2
how to check which version of a code runs faster
how to check which version of a code runs faster in c++, c#
1 Odpowiedź
+ 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.