DT_Elapsed timer, how to compensate for inaccuracy over long periods ?


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jul 2010
    Posts
    14


    Did you find this post helpful? Yes | No

    Default Re: DT_Elapsed timer, how to compensate for inaccuracy over long periods ?

    I'll try that. I don't have a manual way to sync the PC's clock to a time server as it is locked out and is updated by a local server. So, I don't know exactly when it's clock is updated to a time server. I try to find a better way to compare the time to.

    Thanks,
    Bryan

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: DT_Elapsed timer, how to compensate for inaccuracy over long periods ?

    If you really want accurate timekeeping, you can set up an interrupt on zero-crossings of the AC power line.
    Or - If you are brave, I can send you a portion of a program I wrote that contacts NTP time servers (requires a Lantronix XPort or similar) and PBPL.
    Or - if you are outdoors, you can get time from a GPS module.
    Charles Linquist

  3. #3
    Join Date
    Jul 2010
    Posts
    14


    Did you find this post helpful? Yes | No

    Default Re: DT_Elapsed timer, how to compensate for inaccuracy over long periods ?

    Quote Originally Posted by Charles Linquis View Post
    If you really want accurate timekeeping, you can set up an interrupt on zero-crossings of the AC power line.
    Or - If you are brave, I can send you a portion of a program I wrote that contacts NTP time servers (requires a Lantronix XPort or similar) and PBPL.
    Or - if you are outdoors, you can get time from a GPS module.
    Thanks,
    Turns out it was the PC clock was updated by the time server during the period I was monitoring the timer. Found that the timer code/circuit keeps very accurate time for my needs.

    Bryan

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts