include vmm.inc VMMcall Get_System_Time mov [SysTime], eax ; system time in milliseconds |
The Get_System_Time service returns the time in milliseconds since Windows started. This service is accurate to 1 millisecond.
This is an asynchronous service.
This service has no parameters.
The EAX register contains the elapsed time in milliseconds since Windows started.
This service does not detect rollover of the clock which occurs every 49 1/2 days. If a virtual device is sensitive to rollover, it should schedule a time out every 30 days.
Although the Get_System_Time service is more accurate than the Get_Last_Updated_System_Time service, Get_System_Time must call the timer device to update the clock so it is slower than Get_Last_Updated_System_Time.
EAX, Flags