include vmm.inc
mov ebx, [VMHandle]
VMMCall Get_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 1 millisecond. This is an asynchronous service. Uses EAX, Flags.
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.
Get_Last_Updated_VM_Exec_Time