Share via


VirtualTimeSchedulerBase<TAbsolute, TRelative>.ToRelative Method

Converts the TimeSpan value to a relative time value.

Namespace:  System.Reactive.Concurrency
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
Protected MustOverride Function ToRelative ( _
    timeSpan As TimeSpan _
) As TRelative
'Usage
Dim timeSpan As TimeSpan
Dim returnValue As TRelative

returnValue = Me.ToRelative(timeSpan)
protected abstract TRelative ToRelative(
    TimeSpan timeSpan
)
protected:
virtual TRelative ToRelative(
    TimeSpan timeSpan
) abstract
abstract ToRelative : 
        timeSpan:TimeSpan -> 'TRelative 
protected abstract function ToRelative(
    timeSpan : TimeSpan
) : TRelative

Parameters

Return Value

Type: TRelative
The corresponding relative time value.

See Also

Reference

VirtualTimeSchedulerBase<TAbsolute, TRelative> Class

System.Reactive.Concurrency Namespace