Strange CPU time results...

Hi Red Gate team,

I have a special case in which I get quite strange cpu timings. How do you meassure cpu timings? Do you use time stamp counter?

Regards,
Peter

Comments

  • James BJames B Posts: 1,124 Silver 4
    Thanks for your post - I'm not personally aware of the precise details of how we capture timings - a previous query in-house resulted in the answer that its by intercepting the lower level calls made by .NET. In itself that may not help you- can you give a bit more detail about the problem you're experiencing, as it may be something we've come across before?
    Systems Software Engineer

    Redgate Software

  • Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    The way I understand, the .NET Profiling interface provided by Microsoft provides the method entry and method exit times. Then it's a matter of counting the ticks inbetween. So on XP there is a speedstep issue but for most other operating systems, if there is anything untowards, it's usually caused by bodged overhead calculations. ANTS attempts to subrtact the time it took in your process from the results. It is possible to turn overhead correction off in the settings.
Sign In or Register to comment.