Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNtpOffsetTime ¶
* GetNtpOffsetTime 获取ntp的时间差值 * * @return offSetTime time.Duration ntp时间差值
func GetNtpTime ¶
* GetNtpTime 获取ntp同步之后的当前时间 * * @return ntpNowTime time.Time 同步ntp后的当前时间
func TriggerNtpSyncWaitRes ¶
func TriggerNtpSyncWaitRes() bool
* TriggerNtpSyncWaitRes 主动触发ntp进行时间同步, 并返回触发是否成功标识 * * @return res bool 是否同步成功
func WaitSyncTimeFinish ¶
func WaitSyncTimeFinish() bool
* WaitSyncTimeFinish 等待ntp时间同步结果 * * @return res bool 是否同步成功
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.