Click or drag to resize
TimeIntervalCompare Method
Compares interval to relative time (compareTo) with a lower bound and upper bound threshold.

Namespace: StreamCoders
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public int Compare(
	TimeSpan compareTo,
	TimeSpan lowerBoundDelta,
	TimeSpan upperBoundDelta
)

Parameters

compareTo
Type: SystemTimeSpan
relative time to compare interval to.
lowerBoundDelta
Type: SystemTimeSpan
Lower bound delta.
upperBoundDelta
Type: SystemTimeSpan
Upper bound delta.

Return Value

Type: Int32

Returns 0 if time interval is within lower and upper bounds (inclusive) when compared to relative time.

Returns -1 if time interval is smaller than lower bounds.

Returns 1 if time interval is greater than upper bounds.

See Also