469,315 Members | 1,601 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,315 developers. It's quick & easy.

StopWatch issue with Multi-CUP servers

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!!!
Apr 18 '07 #1
1 2366
"Raja" <Ra**@discussions.microsoft.comwrote in message
news:91**********************************@microsof t.com...
>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.

Apr 18 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Shane | last post: by
6 posts views Thread by luckyjameel | last post: by
3 posts views Thread by Jeff Jarrell | last post: by
4 posts views Thread by PlusNet | last post: by
reply views Thread by kerplunkwhoops | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.