PI Controller Based Time Synchronization