Differences in Elapsed Ticks property of Stopwatch

前端 未结 1 1734
囚心锁ツ
囚心锁ツ 2021-02-14 10:26

ElapsedTicks & Elapsed.Ticks are properties of Stopwatch, which I think should be same. And in case they are same, why they should give different outputs ?

Code :

相关标签:
1条回答
  • 2021-02-14 11:16

    See http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch.elapsedticks.aspx:

    Note Stopwatch ticks are different from DateTime.Ticks. Each tick in the DateTime.Ticks value represents one 100-nanosecond interval. Each tick in the ElapsedTicks value represents the time interval equal to 1 second divided by the Frequency.

    0 讨论(0)
提交回复
热议问题