Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Get_VM_Exec_Time
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
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.
 
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 so it is slower than
Get_Last_Updated_VM_Exec_Time.
 
Uses
 
EAX, Flags
 
See Also
 
Get_Last_Updated_VM_Exec_Time