Switch timer to using chrono library