moves time synchronization logic to TimeSynchronizer class