SyncFence.SignalTime Property
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.
Returns the time in nanoseconds that the fence signaled in the CLOCK_MONOTONIC time domain.
public long SignalTime { [Android.Runtime.Register("getSignalTime", "()J", "", ApiSince=33)] get; }
[<get: Android.Runtime.Register("getSignalTime", "()J", "", ApiSince=33)>]
member this.SignalTime : int64
Property Value
The time the fence signaled, #SIGNAL_TIME_INVALID
if there's an error,
or #SIGNAL_TIME_PENDING
if the fence hasn't signaled yet.
- Attributes
Remarks
Returns the time in nanoseconds that the fence signaled in the CLOCK_MONOTONIC time domain. This corresponds to System#nanoTime()
but may also be compared to SystemClock#uptimeMillis()
after adjusting for milliseconds vs. nanoseconds.
If the fence isn't valid, that is if #isValid()
is false, then this returns #SIGNAL_TIME_INVALID
. Similarly, if an error occurs while trying to access the signal time, then #SIGNAL_TIME_INVALID
is also returned.
If the fence hasn't yet signaled, then #SIGNAL_TIME_PENDING
is returned.
Java documentation for android.hardware.SyncFence.getSignalTime()
.
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.