AppRemoting.TryConvertToRemoteTime(Int64, Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.