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

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

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

using System;

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

        ticksperhour = TimeSpan.TicksPerHour;

        Console.WriteLine("Ticks per hour: " + ticksperhour);
    }
}

output

Ticks per hour: 36000000000
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