It's convenient for you to time your program.
#include <iostream>
#include "Timer.h"
int main(){
int a = 0;
Timer* timer = Timer::begin(); // auto timer = Timer::begin();
for(int i = 0; i < 100000; i++)
a += i;
double res = timer->finish();
std::cout << res << endl;
return 0;
}