include vmm.inc VMMcall Get_VM_Exec_Time mov [ExecTime], eax ; time in milliseconds that VM has run |
The Get_VM_Exec_Time service returns the amount of time that the current virtual machine has run. This service is accurate to 1 millisecond.
This is an asynchronous service.
This service has no parameters.
The EAX register contains the execution time for the current virtual machine.
When the system creates a virtual machine, it sets the execution time for the virtual machine to zero. The system increases the execution time only when the virtual machine actually runs. This means the execution time indicates the amount of time the current virtual machine has run, not the length of time since it was created.
Although the Get_VM_Exec_Time service is more accurate than the Get_Last_Updated_VM_Exec_Time service, Get_VM_Exec_Time must call the timer device to update the clock; therefore it is slower than Get_Last_Updated_VM_Exec_Time.
EAX, Flags