Get_VM_Exec_Time

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.

Parameters

This service has no parameters.

Return Value

The EAX register contains the execution time for the current virtual machine.

Comments

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.

Uses

EAX, Flags

See Also

Get_Last_Updated_VM_Exec_Time