|
How accurate do you want it to be?
You can have my code. It is up to 10 micro-seconds accurate, meant to replace the standard profiling utilites usually found on IDE's.
Made for win32 systems, but not all too hard to port.
I can do better, up to about 100 cpu instructions. But you have to give me a reason to invest time. I'm busy and moving away from C++ and assembly.
__________________
|