#include "Stopwatch.h" int main( int argc, char** argv ) { Stopwatch *sw = new Stopwatch(); sw->start(); uint64_t bla = 0; for(int i = 0; i < 100000000; i++){ bla = bla + i*i; } cout << bla << endl; sw->stop(); cout << sw->formatRealTime() << " | " << sw->formatSysTime() << endl; cout << sw->getRealTime() << " | " << sw->getSysTime() << endl; bla = 0; for(int i = 0; i < 100000000; i++){ bla = bla + i*i; } cout << bla << endl; sw->stop(); cout << sw->formatRealTime() << " | " << sw->formatSysTime() << endl; cout << sw->getRealTime() << " | " << sw->getSysTime() << endl; return bla; }