
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
C# TicksPer constants
TicksPer constants in C# have TicksPerDay, TicksPerHour, TicksPerMinute, TicksPerSecond, and TicksPerMillisecond constants. A millisecond consists of 10,000 ticks.
Here are the TicksPer constants −
TimeSpan.TicksPerDay TimeSpan.TicksPerHour TimeSpan.TicksPerMinute
Example
using System; using System.Linq; public class Demo { public static void Main() { // TicksPer constant Console.WriteLine(TimeSpan.TicksPerDay); Console.WriteLine(TimeSpan.TicksPerHour); Console.WriteLine(TimeSpan.TicksPerMinute); } }
Output
864000000000 36000000000 600000000
- Related Articles
- Difference between C++ string constants and character constants
- PHP Constants
- PHP Class Constants
- Mathematical Constants in Python
- Decimal constants in C#
- PHP Predefined Mathematical Constants
- Constants in Rust Programming
- Relation between Elastic Constants
- Explain Constants in ES6
- ABAP constants with %_ as prefix
- Are there constants in JavaScript?
- What are constants in C++?
- What are C++ Integer Constants?
- What are C++ Character Constants?
- Using constants in ABAP OO method

Advertisements