Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

migrated from 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, BinaryMisfit 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.

Can you please post the specific C code? – initall Jan 19 '11 at 13:39
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 – 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
I think the problem is similar to… – DavidLiu Jan 19 '11 at 14:22

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

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

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

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