Daddy Bob

DADDY BOB'S COMPUTER Q & A

 

June 22, 2008

Q. The clock on my computer doesn't keep very accurate time. My computer only checks for the correct time once a week, and then it can be as much as a minute off. Can I set the time between checks shorter than a every week?

A. Yes, but first a little background on computer clocks.

Usually a computer is equipped with two clocks. A CMOS clock which can be set in the setup-menu of the particular computer system and an operating system or kernel based clock. The CMOS clock is queried during system boot and is used to set the operating system clock during the boot phase. Afterwards the kernel will usually not refer any more to the CMOS clock. In Windows systems, setting the clock in Windows will set both clocks.

The CMOS clock is the one you see when you boot your computer into its setup configuration, usually done by entering a special key press at boot up. The kernel clock is the one displayed in the system tray that can be set when you double click on it.

While the computer is running, the CMOS clock and the kernel based system clock will drift apart. There are many reasons for this starting with fabrication based inaccurateness of quartz crystals and ending with exhausted motherboard batteries. In current computers, this is generally a small, common Lithium non-rechargeable 3 volt #CR3032 battery that will normally outlast the computer. In older computers, this battery could be any number of different types, some rechargeable and some not. This small battery is not to be confused with the larger main battery used in laptops.

In times past, there were attempts to use very accurate clocks in computers. One popular one was called the "Dallas" clock which boasted an accuracy of 2 to 3 seconds per year. Obviously, this accuracy was not cheap to produce. So, in an effort to reduce the overall cost of computers, and with the advent of Windows and the Internet to allow checking and setting the clocks, the much cheaper use of crystals is now used almost exclusively. Crystals can be very accurate, but here again, accuracy costs so many are not. Compare this to watches, which also use crystals. A $4000 Rolex keeps very accurate time, a $5 Wal-mart one may not.

Back to the question. The interval between the times you computer checks for the correct time and reset the computer clock can be set to just about any interval. By default, Windows XP or Vista checks for the accurate time setting weekly. The time each week is always exactly one week from the last time it was done, either automatically or manually. The computer tracks this interval in seconds which means the default setting resets the clock every 604,800 seconds, providing there is an active Internet connection.

As is the case with most of these type settings, this interval time is kept in the registry, so changing it requires modifying the registry. For those that are adventurous, here is the key, in a smaller font to make it fit on one line.

HKEY_Local_Machine\System\ControlSet001\Services\W32Time\TimeProviders\NtpClient

The value, SpecialPollInterval is set in seconds, so the default, weekly setting is 604800. The daily setting would be 86400 and the hourly setting 3600. On some computers you may have to set the same key in ControlSet002 and ControlSet003.

To make this change easier to do, I have written a little program that allows changing the interval to hourly, daily or weekly. It can be downloaded in the Download section of this site or by clicking HERE. For any other setting you will just have to be brave and edit the registry yourself.

Click HERE to view or download as a Microsoft Word document

Disclaimer:

The materials in this site are provided "as is" and without warranties of any kind, either express or implied. To the fullest extent permissible pursuant to applicable law, I disclaim all warranties, express or implied, including, but not limited to, implied warranties of merchantability and fitness for a particular purpose. I do not warrant that the functions contained in the materials on this site will be uninterrupted or error-free, that defects will be corrected, or that any site or the servers that make such materials available are free of viruses, spyware, adware, or other harmful components, although all efforts have been made to assure that they are. I do not warrant or make any representations regarding the use or the results of the use of the materials on this site in terms of their correctness, accuracy, reliability, or otherwise. You assume the entire cost of all necessary servicing, repair, or correction. Applicable law may not allow the exclusion of implied warranties, so the above exclusion may not apply to you.