timer.cpp working