PerceptionTimestamp
PerceptionTimestamp
PerceptionTimestamp
PerceptionTimestamp
Class
Definition
Represents a particular prediction of the future, or a snapshot of the past.
Passing one PerceptionTimestamp instance to multiple API calls ensures that they all return results based on the same set of predicted data, even if Windows has improved predictions available. This ensures that you can correctly correlate the data you get back from these APIs.
public : sealed class PerceptionTimestamp : IPerceptionTimestamppublic sealed class PerceptionTimestamp : IPerceptionTimestampPublic NotInheritable Class PerceptionTimestamp Implements IPerceptionTimestamp// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v2)
|
Properties
PredictionAmount PredictionAmount PredictionAmount PredictionAmount
For timestamps about the future, gets the span of time between when the prediction was made and TargetTime.
public : TimeSpan PredictionAmount { get; }public TimeSpan PredictionAmount { get; }Public ReadOnly Property PredictionAmount As TimeSpan// You can use this property in JavaScript.
- Value
- TimeSpan TimeSpan TimeSpan TimeSpan
The prediction duration.
Remarks
When you get an improved prediction (for example, from a newer HolographicFramePrediction, TargetTime will stay the same and PredictionAmount will decrease.
For timestamps about the past, PredictionAmount is always 0, even if the data associated with this timestamp was interpolated between two readings.
TargetTime TargetTime TargetTime TargetTime
Gets the specific time that is the subject of this timestamp.
public : DateTime TargetTime { get; }public DateTimeOffset TargetTime { get; }Public ReadOnly Property TargetTime As DateTimeOffset// You can use this property in JavaScript.
- Value
- DateTime DateTimeOffset DateTimeOffset DateTimeOffset
The time.