Dear all
I have a multithreaded C# program where I need to log how many ticks each thread spends in a specific spin wait lock.
I know there are methods for doing that from C or assembler, but is it possible from to access the same counter directly from C# in some way, that is, without going through the Stopwatch class (I assume calling Start/Stop on that has some overhead, and I am not sure how precise it is)?
Thanks, Egil.