Assuming you want to check the built-in service status from code, you can
call[
^]
w32tm
(the service behind is
W32Time
) and parse the result. Please note, that some operations require elevated privileges.
Third party NTP/SNTP clients might have their own API.
So finally, if you only need to know if your current time is in snyc or not, you were not on a wrong path with checking against a time server. But you need to do it right, be using an NTP/SNTP client component, like on described here:
An SNTP Client for C# and VB.NET[
^]. With that you can check your
local clock offset. If it is below a certain level (let's say 1s), you are good.
If you don't want to do this all from code, than you are on the wrong market. This is a coder forum. Still the idea is the same...