VMware
 

Knowledge Base

Search the Knowledge Base:

Products:
Search In:
 

Source of Time Returned by VMGuestLib_GetElapsedMS in a VMware Guest

Details

Does the VMGuestLib_GetElapsedMs function return elapsed time based on a timer on the guest (which means it can fall behind and catch up) or based on a timer on the host (which means its rate should remain constant)?

Solution

The VMGuestLib_GetElapsedMs function, when it is being used in a VMware guest, returns elapsed time based on a timer on the host (so its rate should remain constant).  It returns the virtual machine's uptime in milliseconds, using a constant, non-varying vmkernel time source. The timer  does not fall behind, then catch up.
 
Remember, though, that calling into VMGuestLib has somewhat more overhead than reading a timer local to the guest. Check that you are not calling VMGuestLib so frequently that it negatively affects the performance of your application .

Keywords

Virtual Center, SDK, VI Perl Toolkit, ESX

Feedback

Rating: 1 - Lowest 2 3 4 5 - Highest (0 Ratings)   

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (2000 or fewer characters)
Submit
Rating: 1 - Lowest 2 3 4 5 - Highest (0 Ratings)   
Actions