---
title: "Discussion on \"使用sntp协议从时间服务器同步时间\" | Hashnode"
description: "Discussion on \"使用sntp协议从时间服务器同步时间\". 在互联网上校准时间，是几乎连接在互联网上的每台计算机都要去做的事情，而且很多是在后台完成的，并不需要人工干预；互联网上有很多时间服务器可以发布精确的时间，计算机客户端使用NTP(Network Time Protocol)协议与这些时间服务器进行时间同步，使本机得到精确时间，本文简要描述了NTP协议的原理，对NTP协议的时间同步精度做了简要分析，并具体实现了SNTP(Simple Network Time Protocol)下的客户端，本文附有完整的C语言SNTP客户端的源程序。阅读本文只需掌握..."
url: "https://hashnode.com/posts/180017-sync-time-from-time-server-using-sntp/63f43759c4b79fd751147698"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [使用sntp协议从时间服务器同步时间](https://whowin.cn/180017-sync-time-from-time-server-using-sntp?utm_source=hashnode&utm_medium=feed)

在互联网上校准时间，是几乎连接在互联网上的每台计算机都要去做的事情，而且很多是在后台完成的，并不需要人工干预；互联网上有很多时间服务器可以发布精确的时间，计算机客户端使用NTP(Network Time Protocol)协议与这些时间服务器进行时间同步，使本机得到精确时间，本文简要描述了NTP协议的原理，对NTP协议的时间同步精度做了简要分析，并具体实现了SNTP(Simple Network Time Protocol)下的客户端，本文附有完整的C语言SNTP客户端的源程序。阅读本文只需掌握...

Feb 13, 2023 · 4 min read · whowin.cn  
Updated Oct 18, 2024  
Read the article

-   [#ntp](https://hashnode.com/tag/ntp)
-   [#sntp](https://hashnode.com/tag/sntp)
-   [#networking](https://hashnode.com/tag/networking)
-   [#c](https://hashnode.com/tag/c)

## Written by

[whowin](https://hashnode.com/@whowin)

@whowin · Beijing, China

  
[View profile](https://hashnode.com/@whowin)

一枚有30多年经验的退休程序员，主要从事嵌入式软件开发

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
