Get_Last_Updated_VM_Exec_Time


include vmm.inc

mov    ebx, [VMHandle]
VMMcall Get_Last_Updated_VM_Exec_Time

mov     [ExecTime], eax     ; time in milliseconds that VM has run

Returns the amount of time that the specified virtual machine has run. This service is accurate to approximately 50 milliseconds. This is an asynchronous service. Uses EAX, Flags.

VMHandle

Handle of the virtual machine to obtain execution time information for.

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. Therefore the execution does not reflect the length of time the virtual machine has existed, but indicates the amount of time the current virtual machine has run. Note however that any code executed in the indicated virtual machine contributes to the tally; it is not the case that one second of virtual machine execution time translates into one second of actual CPU time given to the application.

See Timing Query Services for a definition of virtual machine execution time, a discussion of timer rollover, and a comparison of Get_VM_Exec_Time with Get_Last_Updated_VM_Exec_Time.

See also Get_VM_Exec_Time