Share via


AppRemoting.TryConvertToRemoteTime(Int64, Int64) Method

Definition

Convert the time from a player app QPC time to the synchronized remote app QPC time.

public static bool TryConvertToRemoteTime(long playerPerformanceCount, out long remotePerformanceCount);
static member TryConvertToRemoteTime : int64 * int64 -> bool
Public Shared Function TryConvertToRemoteTime (playerPerformanceCount As Long, ByRef remotePerformanceCount As Long) As Boolean

Parameters

playerPerformanceCount
Int64

The performance count obtained in the player app using QueryPerformanceCounter.

remotePerformanceCount
Int64

Output the synchronized performance count as if it is using QueryPerformanceCounter in the remote app at the same time. The output will be 0, indicating invalid time, if the function returns false.

Returns

Returns true when the time is successfully converted. Returns false when the time synchronization between remote and player app is not yet established.

Remarks

This functionality needs the "Holographic Remoting remote app" feature in OpenXR project settings to be enabled and returns false otherwise. This functionality always returns false in Holographic PlayMode Remoting.

Applies to