1#include <iostream>
2#include <chrono>
3
4int main() {
5 auto start = std::chrono::high_resolution_clock::now();
6 // operation to be timed ...
7 auto finish = std::chrono::high_resolution_clock::now();
8 auto time_in_nanoseconds = std::chrono::duration_cast<std::chrono::nanoseconds>(finish-start).count();
9}
10