Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include <chrono>
int main() {
auto start = std::chrono::high_resolution_clock::now();
for (int i = 0; i < 1000000; i++);
auto end = std::chrono::high_resolution_clock::now();
std::cout << std::chrono::duration_cast<std::chrono::microseconds>(end - start).count();
return 0;
}Coding works best on desktop or with an external keyboard.