Search code examples
c++windowstimesystemtime

How to synchronize windows system time using on board embedded controller?


I would like to create a time provider for my windows pc (Windows 7) that syncronizes time based on an embedded controller(EC) on my main board. The EC brings in time and sets specific addresses with the current time which is GPS synchronized. I have an API to the driver for the EC but need to write a time provider to be able to use this time to sync my OS. My question is how to do this? I've read through the MSDN TimeProvider page but am stuck understanding the example. Does anyone on here know of a good forum or blog, etc., that has more information? I really would like more info concerning the Time Provider and can't find much.

How do I synchronize the system using this EC? Are there good sources somewhere talking about a hardware based time provider?


Solution

  • Easiest way might actually be ntp.

    Write an ntp server that talks to your EC box and have windows internet time point to localhost. IIRC ntp server is a fairly trivial protocol.