C# Program to Demonstrate the Use of Fromticks() Method of Timespan Structure

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);


timespan accurate to nearest millisecond: 00:00:00.5532432
Press any key to continue . . .
Share on:

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Comment