Syncing in user space should be simple. The following psuedo code would cost very little and makes the reasonable assumption that sleeping will take no less than 60 seconds and no more than a 120 seconds. Code: def clock_update(): while not_done: now = get_system_time_in_seconds() update_clock (now) sleep_time = 60 - now MOD 60 sleep_for_seconds (sleep_time) clock_update_thread = threading.Thread (target=clock_update) clock_update_thread.start()
def clock_update(): while not_done: now = get_system_time_in_seconds() update_clock (now) sleep_time = 60 - now MOD 60 sleep_for_seconds (sleep_time) clock_update_thread = threading.Thread (target=clock_update) clock_update_thread.start()