Get the number of ticks that represent the value of the current TimeSpan in CSharp
Description
The following code shows how to get the number of ticks that represent the value of the current TimeSpan.
Example
using System;//from w w w . j a v a2 s .co m
class TimeSpanPropertiesDemo
{
static void Main( )
{
TimeSpan ts = new TimeSpan( 98712345678 );
Console.WriteLine(ts.Ticks);
}
}
The code above generates the following result.