Obtaining the System Time
Typically, before an application begins using the multimedia timer services, it retrieves the current system time. The system time is the time, in milliseconds, since the Microsoft Windows operating system was started. You can use the timeGetTime or timeGetSystemTime function to retrieve the system time. These two functions are very similar: timeGetTime returns the system time, and timeGetSystemTime fills an MMTIME structure with the system time.