Sync ts - the clock function