Click here to Skip to main content
15,888,968 members
Home / Discussions / C#
   

C#

 
AnswerRe: StopWatch accuracy improvement? Pin
leppie9-Sep-08 1:37
leppie9-Sep-08 1:37 
GeneralRe: StopWatch accuracy improvement? Pin
JensKxxx9-Sep-08 1:52
JensKxxx9-Sep-08 1:52 
GeneralRe: StopWatch accuracy improvement? Pin
leppie9-Sep-08 1:54
leppie9-Sep-08 1:54 
GeneralRe: StopWatch accuracy improvement? Pin
JensKxxx9-Sep-08 2:07
JensKxxx9-Sep-08 2:07 
GeneralRe: StopWatch accuracy improvement? Pin
leppie9-Sep-08 3:41
leppie9-Sep-08 3:41 
AnswerRe: StopWatch accuracy improvement? Pin
blackjack21509-Sep-08 2:33
blackjack21509-Sep-08 2:33 
GeneralRe: StopWatch accuracy improvement? Pin
leppie9-Sep-08 3:43
leppie9-Sep-08 3:43 
AnswerRe: StopWatch accuracy improvement? Pin
Guffa9-Sep-08 3:41
Guffa9-Sep-08 3:41 
I think that you are experiencing that a different process is using it's entire time slot before your process gets the control back.

When the request is sent and you are waiting for the response, it's most likely doing a Thread.Sleep(0) to give up the rest of each time slot (as there is no reson to check for a response 100000000 times a second). Most of the time all other processes are also waiting for something, so you will get the control back within a few ms or so, but if some other process is doing a lot of work it can take longer before you can check for a response again.

What you are measuring is not how long time it actually takes to get a response, but how long time it takes until your program notices the response. If you want to measure the actual response time you have to do it in a different way, like hooking up something in the IP stack.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: StopWatch accuracy improvement? Pin
leppie9-Sep-08 4:57
leppie9-Sep-08 4:57 
QuestionTicking time on a label Pin
MorganSim9-Sep-08 0:42
MorganSim9-Sep-08 0:42 
AnswerRe: Ticking time on a label Pin
Manas Bhardwaj9-Sep-08 1:12
professionalManas Bhardwaj9-Sep-08 1:12 
AnswerRe: Ticking time on a label Pin
Alan Balkany9-Sep-08 3:25
Alan Balkany9-Sep-08 3:25 
AnswerRe: Ticking time on a label Pin
vikas amin9-Sep-08 8:00
vikas amin9-Sep-08 8:00 
GeneralRe: Ticking time on a label Pin
PIEBALDconsult9-Sep-08 8:54
mvePIEBALDconsult9-Sep-08 8:54 
QuestionSystem.Nvarchar problem Pin
Mogaambo9-Sep-08 0:37
Mogaambo9-Sep-08 0:37 
AnswerRe: System.Nvarchar problem Pin
Manas Bhardwaj9-Sep-08 1:13
professionalManas Bhardwaj9-Sep-08 1:13 
GeneralRe: System.Nvarchar problem Pin
leppie9-Sep-08 1:40
leppie9-Sep-08 1:40 
AnswerRe: System.Nvarchar problem Pin
Pete O'Hanlon9-Sep-08 1:40
mvePete O'Hanlon9-Sep-08 1:40 
AnswerRe: System.Nvarchar problem Pin
enginço9-Sep-08 5:47
enginço9-Sep-08 5:47 
GeneralRe: System.Nvarchar problem Pin
Mogaambo9-Sep-08 18:52
Mogaambo9-Sep-08 18:52 
QuestionSend mesage with attachement Pin
baranils9-Sep-08 0:13
baranils9-Sep-08 0:13 
AnswerRe: Send mesage with attachement Pin
Wendelius9-Sep-08 7:32
mentorWendelius9-Sep-08 7:32 
GeneralRe: Send mesage with attachement Pin
baranils9-Sep-08 8:11
baranils9-Sep-08 8:11 
GeneralRe: Send mesage with attachement Pin
Wendelius9-Sep-08 8:19
mentorWendelius9-Sep-08 8:19 
AnswerRe: Send mesage with attachement Pin
vikas amin9-Sep-08 8:06
vikas amin9-Sep-08 8:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.