Share via


SensorEvent.Timestamp Property

Definition

The time in nanoseconds at which the event happened.

[Android.Runtime.Register("timestamp")]
public long Timestamp { get; set; }
[<Android.Runtime.Register("timestamp")>]
member this.Timestamp : int64 with get, set

Property Value

Attributes

Remarks

The time in nanoseconds at which the event happened. For a given sensor, each new sensor event should be monotonically increasing using the same time base as android.os.SystemClock#elapsedRealtimeNanos().

Java documentation for android.hardware.SensorEvent.timestamp.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to