The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Very Accurate Time Sync please

    Discussion in 'Windows OS and Software' started by jsteng, Jun 30, 2010.

  1. jsteng

    jsteng Notebook Consultant

    Reputations:
    3
    Messages:
    179
    Likes Received:
    2
    Trophy Points:
    31
    How accurate is the Time Sync of Windows?

    I need a way to sync a group of computers' time as accurate as possible to the millisecond, and if possible to the microsecond.

    We are all scathered across the world and thus far, relies on Window's built in time sync to tock.usno.navy.mil or tick.usno.navy.mil. Im not sure if we are sync to the second, millisecond or microsecond...
     
  2. G73Guy

    G73Guy Notebook Consultant

    Reputations:
    151
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    0
    I think as long as the priority is set high you are good to go. I mean that is the US Navy? It has to be based on an atomic clock.
     
  3. Lithus

    Lithus NBR Janitor

    Reputations:
    5,504
    Messages:
    9,788
    Likes Received:
    0
    Trophy Points:
    205
    It doesn't matter what priority you set your system clock to. The sync is passive, and only happens every-so-often.

    The RTC (realtime clock) in your computer is not capable of that type of accuracy. I think the Intel RTC is rated for +/- 3 seconds per day. You're going to need to use another piece of hardware to get accuracy to the microsecond.
     
  4. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    The protocol is called NTP. Wikipedia is your friend ;) Relevant quote:

     
  5. gerryf19

    gerryf19 I am the walrus

    Reputations:
    2,275
    Messages:
    3,990
    Likes Received:
    0
    Trophy Points:
    105
    But, as lithius said, the service running the sync is not constant. It checks periodically and syncs if it can (network traffic and server timeouts can prevent the sync from occurring), or resets and tries again later.

    So, if he needs them to be completely in sync he needs to try something else.

    Even if he runs a time sync via command line with task scheduler, I think the most he can run it is every five minutes.

    As for syncing these computers to the millisecond...wow. You must be spy.
     
  6. Nebelwand

    Nebelwand Notebook Consultant

    Reputations:
    119
    Messages:
    213
    Likes Received:
    0
    Trophy Points:
    30
    There are also USB/serial radio clocks which pick up low frequency time signals, you'd need to check if all of you are in range of such broadcasts.

    GPS also carries time information, but not all receivers (or accompanying software) may be suited for really time critical applications.
     
  7. lbohn

    lbohn Notebook Consultant

    Reputations:
    320
    Messages:
    235
    Likes Received:
    0
    Trophy Points:
    30
    You will need a different method for that kind of precision. NTP synchronization is reliably precise to about 10 ms over the internet. However banging someone's NTP server at that rate will surely get your IP banned quickly. As Nebelwand suggests, for precise time synchronized in multiple locations GPS will be your best method.

    It's not just a problem with the RTC and sync schedule.

    http://support.microsoft.com/kb/939322
    http://technet.microsoft.com/en-us/library/cc773013(WS.10).aspx

    Furthermore the W32Time API precision is only about 10 ms. If you need ms or µs precision you are going to need a high precision time API on the Windows platform.

    http://www.bytefusion.com/products/ntm/ptnt/highresolutiontime.htm

    For ms/µs resolution, synchronization and precision you are going to need to:

    1) Change your remote synchronization method -- GPS instead of NTP
    2) Change your local synchronization software -- a quality GPS-NMEA time reader
    3) Change your time API for a high precision API

    --L.
     
  8. newsposter

    newsposter Notebook Virtuoso

    Reputations:
    801
    Messages:
    3,881
    Likes Received:
    0
    Trophy Points:
    105
    There are also NTP servers that rely on the time signals sent by the GPS satellites. Horribly expensive though.
     
  9. Triple_Dude

    Triple_Dude Notebook Evangelist

    Reputations:
    75
    Messages:
    589
    Likes Received:
    0
    Trophy Points:
    30
    You will require external clock generators to get that kind of accuracy to the microsecond--but the main problem is how to sync them across the world; which is, afaik, not economically feasible...
     
  10. newsposter

    newsposter Notebook Virtuoso

    Reputations:
    801
    Messages:
    3,881
    Likes Received:
    0
    Trophy Points:
    105
    The next question is WHY? ebay sniping, video editing on a shared pool of 'cloud' disk or ???

    Not a lot at the consumer level requires time sync at an accuracy or more than 1 or 2 seconds.
     
  11. Pirx

    Pirx Notebook Virtuoso

    Reputations:
    3,001
    Messages:
    3,005
    Likes Received:
    416
    Trophy Points:
    151
    It is feasible, since GPS satellites carry time signals that are much more precise than what the OP needs. However, as lbohn has pointed out, you also need high-precision synchronization software. If you want microsecond accuracy, then I'm not even sure this is feasible in standard Windows. You may need a real-time OS to achieve this, since Windows cannot, by design, guarantee execution of commands at specific times, and with fixed delays, and neither does any other general-purpose OS. On the other hand, some clever software design may get around these issues, using some smart mathematics. It's unlikely that anybody in a newsgroup like this has the kind of specialized expertise to help you with this. I certainly don't.