Clock.Tick(Clock, Duration) Method

Definition

Obtains a clock that returns instants from the specified clock truncated to the nearest occurrence of the specified duration.

[Android.Runtime.Register("tick", "(Ljava/time/Clock;Ljava/time/Duration;)Ljava/time/Clock;", "", ApiSince=26)]
public static Java.Time.Clock? Tick(Java.Time.Clock? baseClock, Java.Time.Duration? tickDuration);
[<Android.Runtime.Register("tick", "(Ljava/time/Clock;Ljava/time/Duration;)Ljava/time/Clock;", "", ApiSince=26)>]
static member Tick : Java.Time.Clock * Java.Time.Duration -> Java.Time.Clock

Parameters

baseClock
Clock

the base clock to base the ticking clock on, not null

tickDuration
Duration

the duration of each visible tick, not negative, not null

Returns

a clock that ticks in whole units of the duration, not null

Attributes

Remarks

To be added.

Java reference for java.time.Clock.tick.

Applies to