20.1.2 Windows Time

Windows keeps track of the number of elapsed milliseconds since it was started. This number is kept in a 32-bit value, so it can record 232 100-millisecond intervals before the 32-bit value rolls over to zero. This is approximately 49.7 days.

The GetWindowsTime and GetTickCount functions both return the Windows time. These functions are provided primarily for compatibility with earlier versions of Windows.