Multicore and thread aware .Net stopwatch?

后端 未结 2 356
清歌不尽
清歌不尽 2020-12-18 21:18

As we all know the stopwatch might have issues in a multi-threaded async application that will be running on all cores.

On a multipro

2条回答
  •  孤城傲影
    2020-12-18 21:50

    I have searched for an answer to this specific problem myself and the best that I have seen is DateTime.UtcNow. It would seem that there is no Windows exposed high resolution and reliable counter (I have googled for one for ages and still haven't come across any).

提交回复
热议问题