Share via


TimeSpan.Ticks Property

Gets the number of ticks in the current TimeSpan object (time period).

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public long Ticks { get; }

Property Value

The number of ticks in the current TimeSpan object, expressed as a number between the value in the MinValue field and the value in the MaxValue field.

Remarks

One tick equals 100 nanoseconds. The value of the Ticks property is the total number of ticks in the current TimeSpan object.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

TimeSpan Structure
TimeSpan Members
System Namespace