Article 5FMJP Looking for an API for accurate time

Looking for an API for accurate time

by
BruceV
from LinuxQuestions.org on (#5FMJP)
I run Debian on an ARM machine, partway between a desktop and an embedded system. It is networked with internet access, but has no GUI interface, all console access is via the terminal. I'm looking for something like the gettime() function, except that rather than accessing the system clock, it polls one of the more accurate sources on the internet. It needs to be an API function, because the application involved runs constantly, and needs to call up accurate time anytime, in response to other inputs.

Network delays are unlikely to be a problem, the requirement here is to avoid the steady slip that results from typical system clock sources, eg. 50ppm crystals.latest?d=yIl2AUoC8zA latest?i=-z0U_txS9Zo:t3JzpBHaDnw:F7zBnMy latest?i=-z0U_txS9Zo:t3JzpBHaDnw:V_sGLiP latest?d=qj6IDK7rITs latest?i=-z0U_txS9Zo:t3JzpBHaDnw:gIN9vFw-z0U_txS9Zo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments