LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 09-01-2009, 10:28 AM   #1
bizoo
LQ Newbie
 
Registered: Jul 2009
Posts: 17

Rep: Reputation: 0
adjtimex and clock resolutions


HI

I was just looking at ntp daemon and adjtimex functions. I saw that adjtimex can only correct offsets in microsecond range.
HOWEVER, with hrtimers these days, we easily have nanosecond resolution timers, so why cant we get rid of nanosecond offsets using adjtimex and avoid losing accuracy
??

Also, is there any way of using the nanosecond range difference with adjtimex or any other utility?

thanks
cheers!
 
Old 09-07-2009, 05:19 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Squeeze (Fluxbox WM)
Posts: 1,331
Blog Entries: 44

Rep: Reputation: 334Reputation: 334Reputation: 334Reputation: 334
There were patches for the 2.4 kernels to provide pulse per second support and a nanosecond interface.

There are also current projects that provide pulse per second support for the 2.6 kernels.

This is only useful if you have a synchronizing time source accurate to nanoseconds (not just precise to nanoseconds), such as a GPS sourced interrupt.
 
Old 09-08-2009, 09:45 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by neonsignal View Post
This is only useful if you have a synchronizing time source accurate to nanoseconds (not just precise to nanoseconds), such as a GPS sourced interrupt.
Excellent point -- to help readers understand the difference: Accuracy and precision
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BYE Clock skew detected. Check the clock on the file server Guardian-Mage Linux - Server 7 04-21-2009 09:48 AM
Slow system clock and stray hardware clock, pleas help! Epox Linux - General 6 01-02-2007 02:43 PM
Linux OS Clock/Timezone shows the clock off by 6 hours between OS's JBailey742 Linux - Software 9 04-06-2006 11:40 PM
Virtual resolutions + Magnifier = Higher Resolutions? equinoxe5 Linux - Software 1 01-14-2006 07:01 AM


All times are GMT -5. The time now is 02:50 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration