Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

guys. I got a bizarre problem which is the system clock always runs a lot faster than the hardware clock. For example, I set both system clock and hardware clock to20:00. After about 15minutes later, the system clock will probably run to20:17, while the hardware clock remains correct, which is20:15.

share|improve this question
    
Can you please post the specific C code? –  initall Jan 19 '11 at 13:39
3  
You do not mention your hardware specifications, or your Linux distribution and kernel version. Without this information it's hard to answer. –  thkala Jan 19 '11 at 13:44
    
This question would also be better suited for SuperUser.com –  thkala Jan 19 '11 at 13:44
    
I think you misunderstood me, and there is no C code. The problem is just the system clock always runs faster than the hardware clock on my Linux server. No matter I adjusted it repeatedly. It just runs faster. –  DavidLiu Jan 19 '11 at 13:51
1  
I think the problem is similar to linuxquestions.org/questions/linux-general-1/… –  DavidLiu Jan 19 '11 at 14:22
show 4 more comments

migrated from stackoverflow.com Jan 19 '11 at 14:07

This question came from our site for professional and enthusiast programmers.

closed as not a real question by Mokubai, Diago Jan 20 '11 at 17:48

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

3 Answers

There might be an NTP daemon running, which will gradually adjust the system time to the world time. As far as I know, the system time is written to the hardware clock only on shutdown.

share|improve this answer
    
There is no NTP daemon running. –  DavidLiu Jan 19 '11 at 14:10
add comment

If you're talking about a linux system install the command / package "adjtimex" (In Ubuntu, it's called this way). The command adjtimex gives you access to the kernel time variables and provide you with further hints what's the situation or problem on your system.

You might also take a look into the "hwclock" manpage which discusses a lot of things that might lead you in the correct direction.

share|improve this answer
add comment

Your CMOS battery may be running out; try replacing it.

share|improve this answer
    
The hardware clock is fine! Only the system clock runs fast. –  DavidLiu Jan 19 '11 at 14:33
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.