Skip to main content

XtfGetSystemUpTime

Gets the amount of time in milliseconds that the System OS and Game OS have been running.

Syntax

Parameters

address
Type: PWCSTR
[in] The address of the console. systemUpTimeSystem
Type: UINT64*
[out, optional] The amount of time, in milliseconds, that the System OS has been running. If this value is not required, set this to nullptr. systemUpTimeTitle
Type: UINT64*
[out, optional] The amount of time, in milliseconds, that the Game OS has been running. If this value is not required, set this to nullptr.

Return value

Type: HRESULT Returns S_OK if successful; otherwise, returns an HRESULT error code.

Remarks

This function returns the amount of time that the System OS and Game OS have been running. For the System OS, this value is the time, in milliseconds, since the console was booted. For the Game OS, this is the time, in milliseconds, since the game was launched. For more information about the System OS and Game OS, see For a complete introduction, see What is the Microsoft Game Development Kit? (NDA topic).

Requirements

Header: xtfapi.h Library: XtfApi.lib Supported platforms: Windows (for XBOX console tools)

See also

XTF Transport Errors (NDA topic)
Additional Xtf APIs
Last modified on August 20, 2026