def ntp_adjtime():
retval = None
try:
libc = cdll.LoadLibrary(find_library("c"))
timex = TimexStruct()
p_timex = pointer(timex)
libc.ntp_adjtime(p_timex)
retval = p_timex.contents
except Exception as e:
return None
return retval
# ---------------------------
评论列表
文章目录