#include #include using namespace std; using namespace std::chrono; high_resolution_clock::time_point start; void TimerStart() { start = high_resolution_clock::now(); } void TimerReport() { high_resolution_clock::time_point stop; high_resolution_clock::duration diff; stop = high_resolution_clock::now(); diff = duration_cast(stop-start); cout << "\nTotal Time: "; /*if ( diff > milliseconds(1000)) { cout << duration_cast(stop-start).count() << " sec, "; } */ cout << duration_cast(stop-start).count() << " ms" << endl; return; }