Get the amount of time in milliseconds that the OS has been running for. For the System OS, this is the time since the console was booted. For the Exclusive Resource OS, this is the time since the game was launched.
HRESULT XtfGetSystemUpTime(
PWCSTR address,
UINT64 *systemUpTimeSystem,
UINT64 *systemUpTimeTitle
)
address
Type: PWCSTR
[in] Address of the console.
systemUpTimeSystem
Type: UINT64 *
[out, optional] The amount of time the System OS has been running for in milliseconds. If the value is not required, pass in nullptr.
systemUpTimeTitle
Type: UINT64 *
[out, optional] The amount of time the Exclusive Resource OS has been running for in milliseconds. If the value is not required, pass in nullptr.
Type: HRESULT
A return value of S_OK indicates the function succeeded. Any other value indicates an unexpected error occurred.
Header: Declared in XtfApi.h.
Library: Use XtfApi.lib.