finished implementation of timesource