C# program to demonstrate the use of FromTicks() method of TimeSpan structure
using System;
class TimeSpanDemo
{
//Entry point of Program
static public void Main()
{
TimeSpan timespan = TimeSpan.FromTicks(5532432);
Console.WriteLine("timespan accurate to nearest millisecond: "+timespan);
}
}
Output
timespan accurate to nearest millisecond: 00:00:00.5532432
Press any key to continue . . .
Table of Contents