Support > Knowledge Base
Knowledge Base

Search the Knowledge Base: |
Search the Knowledge Base: |
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
Feedback
Actions
- KB Article: 1002901
- Updated: Aug 14, 2009
- Products:
VMware Infrastructure SDK - Product Versions:
VMware Infrastructure SDK 2.0.x

