StopWatch issue with Multi-CUP servers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am running a sample application that gives me performance time for each
action. I am using Stopwatch class (found in System.Diagnostics namespace in
..Net 2.0)
to get the Elapsed time. If I run my app in our server that has mutiple cups
(4 cpu box) it gives me negative elapsed time and it is unpredictable.

Anyone knows how to make stopwatch work corretly in multi-cpu servers?

It works fine in my development system that has only 1 cpu.
Thanks!!!
 
Raja said:
I am running a sample application that gives me performance time for each
action. I am using Stopwatch class (found in System.Diagnostics namespace in
.Net 2.0)
to get the Elapsed time. If I run my app in our server that has mutiple cups
(4 cpu box) it gives me negative elapsed time and it is unpredictable.

Anyone knows how to make stopwatch work corretly in multi-cpu servers?

It works fine in my development system that has only 1 cpu.
Thanks!!!


This is not a framework issue, but probably a system issue (W2K3 and XP SP2), check this for
details:

http://support.microsoft.com/kb/896256

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top