Added timer in the main.cpp file