Skip to content

A fork of a Simple NTP (SNTP) client library providing .NET applications with accurate network time. Now with .Net CF Library!

License

Notifications You must be signed in to change notification settings

mhertzfeld/guerrillantp

This branch is 1 commit ahead of, 77 commits behind robertvazan/guerrillantp:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c5c95b2 · Mar 2, 2020
Jan 4, 2020
Jan 31, 2018
Mar 2, 2020
Sep 26, 2019
Sep 25, 2019
Jan 26, 2018
Jan 4, 2020
Jan 4, 2020
Sep 26, 2019

Repository files navigation

GuerrillaNtp

GuerrillaNtp is a simple NTP (SNTP) client written in C# that can be embedded in desktop .NET applications to provide them with accurate network time even when the system clock is unsynchronized.

// query the SNTP server
TimeSpan offset;
using (var ntp = new NtpClient(Dns.GetHostAddresses("pool.ntp.org")[0]))
    offset = ntp.GetCorrectionOffset();

// use the offset throughout your app
var accurateTime = DateTime.UtcNow + offset;

About

A fork of a Simple NTP (SNTP) client library providing .NET applications with accurate network time. Now with .Net CF Library!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%