Returns the total virtual machine usage time in seconds.
PRL_RESULT PrlStat_GetOsUptime( PRL_HANDLE hStat, PRL_UINT64_PTR pnUptime );
PrlApiStat.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.
PRL_ERR_SUCCESS - function completed successfully.
The virtual machine usage counter is not reset when the virtual machine is stopped and restarted, so it's value reflects the total uptime since the virtual machine was first started.