C# TimeSpan Ticks
Description
TimeSpan Ticks
gets the number of ticks that represent
the value of the current TimeSpan structure.
Syntax
TimeSpan.Ticks
has the following syntax.
public long Ticks { get; }
Example
The following example creates several TimeSpan objects and displays the Seconds property of each.
using System;//from ww w .j a va 2 s . c o m
class TimeSpanPropertiesDemo
{
static void Main( )
{
TimeSpan ts = new TimeSpan( 98712345678 );
Console.WriteLine(ts.Ticks);
}
}
The code above generates the following result.