Gets the duration of the current time span.
[Visual Basic] Public Function Duration() As TimeSpan [C#] public TimeSpan Duration(); [C++] public: TimeSpan Duration(); [JScript] public function Duration() : TimeSpan;
A TimeSpan representing the absolute value of the current instance.
The Duration method returns a new TimeSpan instance that is based upon an evaluation of two specified ticks values.
TimeSpan Structure | TimeSpan Members | System Namespace | Ticks