Share via


TestScheduler.ToRelative Method

Converts the TimeSpan value to a relative virtual time value.

Namespace:  Microsoft.Reactive.Testing
Assembly:  Microsoft.Reactive.Testing (in Microsoft.Reactive.Testing.dll)

Syntax

'Declaration
Protected Overrides Function ToRelative ( _
    timeSpan As TimeSpan _
) As Long
'Usage
Dim timeSpan As TimeSpan
Dim returnValue As Long

returnValue = Me.ToRelative(timeSpan)
protected override long ToRelative(
    TimeSpan timeSpan
)
protected:
virtual long long ToRelative(
    TimeSpan timeSpan
) override
abstract ToRelative : 
        timeSpan:TimeSpan -> int64 
override ToRelative : 
        timeSpan:TimeSpan -> int64 
protected override function ToRelative(
    timeSpan : TimeSpan
) : long

Parameters

Return Value

Type: System.Int64
The corresponding relative virtual time value.

See Also

Reference

TestScheduler Class

Microsoft.Reactive.Testing Namespace