CockpitTimer
USI.Core
Shared developer-facing behavior for a named cockpit timer.
public abstract class CockpitTimer : IndexedAircraftComponentNodeProperties
Kind
public CockpitTimerKind Kind { get; }Gets whether this is a chronometer or elapsed timer.
Methods
TryGetElapsedTimeAsync
public Task<USIResult<TimeSpan>> TryGetElapsedTimeAsync()Gets the accumulated nonnegative time.
TryGetRunningAsync
public Task<USIResult<Boolean>> TryGetRunningAsync()Gets whether the timer is currently running.
TryResetAsync
public Task<USIResult> TryResetAsync()Resets the accumulated time to zero.
TrySetElapsedTimeAsync
public Task<USIResult> TrySetElapsedTimeAsync(TimeSpan elapsedTime)Sets the timer to an absolute nonnegative elapsed time.
TrySetRunningAsync
public Task<USIResult> TrySetRunningAsync(bool running)Starts or stops the timer using absolute intent.
