W
Willy Denoyette [MVP]
colin said:yeah strange, maybe some who knows the internals can shed some light on
this?
You need to check your project/debug attributes for this project.
without actually knowing where the code is spending its time during
those 9000 clock cyclces its hard to know whats cuasing it.
yes good point, however I wanted to make sure the realease build was
clean.
Theres little difference in the run time beteween debug and release.
I was only looking for the most time consuming parts of the code
I didnt expect a 20 times increase in time just becuase of this timer
tho lol, the increase occurs in the release or debug version,
purly determined by the debugegr being attched or not.
thanks very much for your help finaly got a workable solution anyway
Colin =^.^=
The debug version of the code I posted, takes 230-350 cycles (that is the
time needed to service that rdtsc function)when running in the managed
debugger (IDE VS2008) on my box.
Which is quite normal, because the CLR has to signal the transition into
unmanaged code to the debugging engine (and obviously to the attached
debugger).
Willy.