#include #include using namespace std; using namespace std::chrono; // tidshantering ligger separat int main() { auto tp = steady_clock::now(); // some complicated calculations we want to time // ... cout << "Total time: " << duration_cast(steady_clock::now() - tp).count(); }