Time Synchronisation With Windows 2000 or XP
If you're running Windows 2000 or XP at home, it's very unlikley that you have a 'Primary Domain Controller' to give you the time of day. ;) Windows 2000 & XP has a built in "Windows Time" service that is also compatible with public SNTP Time Servers, all you need to do is configure it. I chose a local SNTP server from the list: http://support.microsoft.com/kb/262680 ``` Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:>net time /querysntp This computer is not currently configured to use a specific SNTP server. The command completed successfully. C:>net time /setsntp:ntp0.uk.uu.net The command completed successfully. C:>net time /querysntp The current SNTP value is: ntp0.uk.uu.net The command completed successfully. C:>net stop w32time The Windows Time service is stopping. The Windows Time service was stopped successfully. C:>net start w32time The Windows Time service is starting. The Windows Time service was started successfully. C:> ``` Done! Immediately after the last line "net start w32time", I noticed my clock jumping forward a few minutes. You can see messages in the "Event Viewer" from W32Time, for example: ``` Event Type: Information Event Source: w32time Event Category: None Event ID: 593 Date: 26/07/2005 Time: 11:40:05 User: N/A Computer: LOCALHOST Description: Time service corrected the clock error by 220 seconds ```
Related Posts
Update: TI 7×21 FlashMedia/SD Host Controller (104C:8033 & 104C:8034)
Bit of an update, my previous post is now getting a significant amount of traffic; in fact it’s my hottest post yet!
Using MEncoder to convert a DVD to DivX
More for my own benefit, but here goes... This is an example of using MEncoder (Windows version) to convert a DVD to DivX.
Determine the number of open files in your program (C/C++)
The code below will display the number of files open by the running process.