title: Multicore and thread aware .Net stopwatch?
body: <p>As we all know the <strong>stopwatch</strong> might have issues in a multi-threaded async application that will be running on all cores.</p>
  
  <blockquote>
    <p>On a multiprocessor computer, it does not matter which processor the thread runs on. However, because of bugs in the BIOS or the Hardware Abstraction Layer (HAL), you can get different timing results on different processors. To specify processor affinity for a thread, use the ProcessThread.ProcessorAffinity method.</p>
  </blockquote>
  
  <p>Are there any way for me to get some reliable tick/timestamp like values that has high resolution/accuracy as well is consistent across cpu cores?</p>
  
  <p>If not possible to make the stopwatch(QueryPerformanceCounter) multi-core safe, what is the next best way to get a good timestamp across cores? <strong>DateTime.UtcNow.Ticks</strong> or <strong>Environment.TickCount</strong>? Any other counters? </p>
  
  <p>I do need better resolution than what DateTime.UtcNow.Ticks can provide. (10-15ms)</p>