<PackageReference Include="ReactiveUI.Primitives" Version="8.3.0" />

ReactiveUI.Primitives.Concurrency.VirtualTimeSequencer<TAbsolute, TRelative>

public sealed class VirtualTimeSequencer<TAbsolute, TRelative> : ISequencer, IServiceProvider, IStopwatchProvider where TAbsolute : IComparable<TAbsolute>
public TAbsolute Clock { get; }

public bool IsEnabled { get; }

public DateTimeOffset Now { get; }

public long Timestamp { get; }

public VirtualTimeSequencer(TAbsolute initialClock, IComparer<TAbsolute> comparer, Func<TAbsolute, TRelative, TAbsolute> add, Func<TAbsolute, DateTimeOffset> toDateTimeOffset, Func<TimeSpan, TRelative> toRelative)

public void AdvanceBy(TRelative time)

public void AdvanceTo(TAbsolute time)

public void Schedule(IWorkItem item)

public void Schedule(IWorkItem item, long dueTimestamp)

public IDisposable Schedule<TState>(TState state, Func<ISequencer, TState, IDisposable> action)

public IDisposable Schedule<TState>(TState state, TimeSpan dueTime, Func<ISequencer, TState, IDisposable> action)

public IDisposable Schedule<TState>(TState state, DateTimeOffset dueTime, Func<ISequencer, TState, IDisposable> action)

public IDisposable ScheduleAbsolute<TState>(TState state, TAbsolute dueTime, Func<ISequencer, TState, IDisposable> action)

public IDisposable ScheduleRelative<TState>(TState state, TRelative dueTime, Func<ISequencer, TState, IDisposable> action)

public void Sleep(TRelative time)

public void Start()

public IStopwatch StartStopwatch()

public void Stop()