title: measure time .net thread spent waiting for IO
body: <p>This is a continuation to <a href="https://stackoverflow.com/questions/3853993/how-much-time-spent-in-a-net-thread">How much time spent in a .NET Thread?</a></p>
  
  <p>I know how I can measure cpu time of a thread (<a href="http://www.codeproject.com/KB/dotnet/ExecutionStopwatch.aspx" rel="nofollow noreferrer">http://www.codeproject.com/KB/dotnet/ExecutionStopwatch.aspx</a>), but I don't know how to measure IO wait of a thread. Thread waits for IO, gets interrupted. While other threads executing, IO operation of our thread long over, we return to our thread, we stop Stopwatch, but it shows incorrectly large time. Any ideas on this?</p>