Made a synchronous Timer class