> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XtfGetSystemUpTime

> XtfGetSystemUpTime

# XtfGetSystemUpTime

Obtiene la cantidad de tiempo, en milisegundos, que el System OS y el Game OS llevan en ejecución.

<a id="syntaxSection" />

## Sintaxis

```cpp theme={null}
HRESULT XtfGetSystemUpTime(
         PWCSTR address,
         UINT64* systemUpTimeSystem,
         UINT64* systemUpTimeTitle
)  
```

<a id="parametersSection" />

### Parámetros

*address*\
Tipo: PWCSTR

\[in] La dirección de la consola.

*systemUpTimeSystem*\
Tipo: UINT64\*

\[out, optional] La cantidad de tiempo, en milisegundos, que el System OS lleva en ejecución. Si este valor no es necesario, establézcalo en `nullptr`.

*systemUpTimeTitle*\
Tipo: UINT64\*

\[out, optional] La cantidad de tiempo, en milisegundos, que el Game OS lleva en ejecución. Si este valor no es necesario, establézcalo en `nullptr`.

<a id="retvalSection" />

### Valor devuelto

Tipo: HRESULT

Devuelve `S_OK` si se ejecuta correctamente; de lo contrario, devuelve un código de error HRESULT.

<a id="remarksSection" />

## Comentarios

Esta función devuelve la cantidad de tiempo que el System OS y el Game OS llevan en ejecución.
Para el System OS, este valor es el tiempo, en milisegundos, transcurrido desde que se arrancó la consola. Para el Game OS, es el tiempo, en milisegundos, transcurrido desde que se inició el juego. Para obtener más información sobre el System OS y el Game OS, para ver una introducción completa, consulte [¿Qué es Microsoft Game Development Kit? (tema con NDA)](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/intro/introduction).

<a id="requirementsSection" />

## Requisitos

**Encabezado:** xtfapi.h

**Biblioteca:** XtfApi.lib

**Plataformas compatibles:** Windows (para las herramientas de consola XBOX)

<a id="seealsoSection" />

## Consulte también

[Errores de transporte de XTF (tema con NDA)](/tools/tools-console/commandlinetools/xtf-transport-errors)\
[API de Xtf adicionales](/reference/tools/xtf/xtfapi/atoc-xtfapi)


## Related topics

- [IXtfConsoleControlClient::GetSystemTime](/es/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getsystemtime.md)
- [IXtfConsoleControlClient](/es/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/ixtfconsolecontrolclient.md)
- [XTFSYSTEMTIME](/es/reference/tools/xtf/xtfconsolecontrol/structs/xtfsystemtime.md)
- [XtfGetConsoleFieldValue](/es/reference/tools/xtf/xtfapi/functions/xtfgetconsolefieldvalue-xbox-microsoft-m.md)
- [XtfDebugStringCallback](/es/reference/tools/xtf/xtfapi/functions/xtfdebugstringcallback-xtfapi-xbox-windows-m.md)
