C# Program to Demonstrate the Use of Tickspermillisecond Property of Timespan Structure

You are currently viewing C# Program to Demonstrate the Use of Tickspermillisecond Property of Timespan Structure

C# program to demonstrate the use of TicksPerMillisecond property of TimeSpan structure

using System;

class TimeSpanDemo
{
    //Entry point of Program
    static public void Main()
    {
        long tickspermillisecond;

        tickspermillisecond = TimeSpan.TicksPerMillisecond;

        Console.WriteLine("Ticks per millisecond: " + tickspermillisecond);
    }
}

Output

Ticks per millisecond: 10000
Press any key to continue . . .

Ranjith Kumar

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 Reply