Implemented timer in Simulated Annealing