How long is a .NET DateTime/TimeSpan tick?
How long is a .NET DateTime/TimeSpan tick?
Solution 1:
Although currently a tick is 100 nanoseconds, it is best not to rely on this as an absolute. Rather, use 'TimeSpan.TicksPerSecond
' (or any of the other TicksPerXxx member values)
Solution 2:
The tick is the unit of granularity for the .NET DateTime and TimeSpan value types.
It has the following common conversions:
1 tick = 100 nanoseconds
= 0.1 microseconds
= 0.0001 milliseconds
= 0.0000001 seconds
Solution 3:
To quote MSDN:
The smallest unit of time is the tick, which is equal to 100 nanoseconds.
Metrology fail.