Click or drag to resize
Akka.NETTimeSpanExtensions Class
This class contains extension methods used to simplify working with TimeSpans.
Remarks
Note! Part of internal API. Breaking changes may occur without notice. Use at own risk.
Inheritance Hierarchy
SystemObject
  Akka.TestKit.InternalTimeSpanExtensions

Namespace:  Akka.TestKit.Internal
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public static class TimeSpanExtensions

The TimeSpanExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberEnsureIsPositiveFinite
Throws an ArgumentException if the timeSpan is not 0 or greater.
Remarks
Note! Part of internal API. Breaking changes may occur without notice. Use at own risk.
Public methodStatic memberIsInfinite(NullableTimeSpan)

Determine if the supplied timeSpan has a negative number of ticks.

Note Note
This is a relaxed definition of a TimeSpan. For a stricter definition, use IsInfiniteTimeout(TimeSpan)
Public methodStatic memberIsInfinite(TimeSpan)

Determine if the supplied timeSpan has a negative number of ticks.

Note Note
This is a relaxed definition of a TimeSpan. For a stricter definition, use IsInfiniteTimeout(TimeSpan)
Public methodStatic memberIsInfiniteTimeout(NullableTimeSpan)
Determine if the supplied timeSpan is equal to InfiniteTimeSpan.
Public methodStatic memberIsInfiniteTimeout(TimeSpan)
Determine if the supplied timeSpan is equal to InfiniteTimeSpan.
Public methodStatic memberIsPositiveFinite(NullableTimeSpan)
Determine if the supplied timeSpan has one or more ticks.
Public methodStatic memberIsPositiveFinite(TimeSpan)
Determine if the supplied timeSpan has one or more ticks.
Public methodStatic memberIsUndefined
Determine if the supplied timeSpan has no value.
Public methodStatic memberIsZero(NullableTimeSpan)
Determine if the supplied timeSpan has zero ticks.
Public methodStatic memberIsZero(TimeSpan)
Determine if the supplied timeSpan has zero ticks.
Public methodStatic memberMin

Compares two supplied timespans and returns the timespan with the least amount of positive ticks.

If b is null it's treated as undefined, and a is returned.

Top
See Also