What is the equivalent to System.nanoTime() in .NET?

前端 未结 7 1435
暖寄归人
暖寄归人 2021-01-07 20:22

The title is pretty much self-explanatory, I\'m killing myself over this simplicity.

Looked here, but it isn\'t much helpful.

7条回答
  •  悲哀的现实
    2021-01-07 20:48

    DateTime.Now will give you the current time in milliseconds, but time that is accurate to nanoseconds is fairly impractical, at least in Windows.

提交回复
热议问题