Results Discrepancy
jreis
Posts: 4
I just finished profiling a Windows Forms application I'm working on, and one of the methods is listed as taking over 800 seconds to run. I added a little code where that call occurs to use the Stopwatch class, and it says it took 172 milliseconds.
Why is there such a huge difference?
Thanks,
Jason
Why is there such a huge difference?
Thanks,
Jason
Comments
Something is most certainly wrong here.
Could it be the hardware? I never had problems like this on my T42 Thinkpad. I've got a Dell Latitude D820 now. I'm wondering if that Core Duo is messing things up. <shrug>
Jason
This method wouldn't happen to be the main form method, would it? for instance? With ANTS Profiler, this always ends up reflecting the time of the whole profiling session. This is becasue ANTS Profiler measures real time, and therefore the entire time that the form was open.
I'm not familiar with stopwatch... is this measuring CPU time or user (real or wall-clock) time?