Timespan Class

Note: This API is now obsolete.

Represents a period of time in nanoseconds.

Inheritance Hierarchy

System.Object
  TcHmiSrv.Timespan
Namespace:  TcHmiSrv
Assembly:  TcHmiSrvExtNet (in TcHmiSrvExtNet.dll) Version: 3.0.0.0

Syntax

C#

[ObsoleteAttribute("Type 'TcHmiSrv.Timespan' is obsolete. Use type 'System.TimeSpan' instead.")]
public class Timespan : IEquatable<Timespan>, 
    IDisposable

The Timespan type exposes the following members.

Constructors

 

Name

Description

Timespan Class 1:

Timespan.

Initializes a new instance of the Timespan class.

Timespan Class 2:

Timespan(Int64)

Initializes a new instance of the Timespan class with the specified number of nanoseconds.

Timespan Class 3:

Timespan(Timespan)

Initializes a new instance of the Timespan class based on another Timespan.

Properties

 

Name

Description

Timespan Class 4:

Milliseconds

Gets the number of milliseconds from the current Timespan.

Timespan Class 5:

Nanoseconds

Gets the number of nanoseconds from the current Timespan.

Timespan Class 6:

Seconds

Gets the number of seconds from the current Timespan.

Methods

 

Name

Description

Timespan Class 7:

Dispose.

Releases all resources used by the Timespan

Timespan Class 8:

Dispose(Boolean)

Releases the unmanaged resources used by the Timespan and optionally releases the managed resources

Timespan Class 9:

Equals(Object)

Determines whether the specified object is equal to the current object. (Inherited from Object.)

Timespan Class 10:

Equals(Timespan)

Indicates whether the current Timespan is equal to another Timespan.

Timespan Class 11:

Finalize

(Overrides Object.Finalize..)

Timespan Class 12:

GetHashCode

Serves as the default hash function. (Inherited from Object.)

Timespan Class 13:

GetType

Gets the Type of the current instance. (Inherited from Object.)

Timespan Class 14:

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Timespan Class 15:

ToString

Returns a string that represents the current object. (Inherited from Object.)

Operators

 

Name

Description

Timespan Class 16:

Timespan Class 17:

Equality

Determines whether two instances of the Timespan class are equal.

Timespan Class 18:

Timespan Class 19:

.(Timespan to TimeSpan)

Converts an instance of the Timespan class to the appropriate instance of the TimeSpan class.

Timespan Class 20:

Timespan Class 21:

.(TimeSpan to Timespan)

Converts an instance of the TimeSpan class to the appropriate instance of the Timespan class.

Timespan Class 22:

Timespan Class 23:

Inequality

Determines whether two instances of the Timespan class are not equal.

Reference

TcHmiSrv Namespace