def is_clock_synchronized(): result = command_util.run_program('ntpstat', error_ok=True) return ClockSyncCheckResult( is_synchronized=result.stdout.startswith('synchron'), cmd_result=result)