Instrumentation with nanosecond accuracy
Can anyone recommend instrumentation with nanosecond (or as accurate as possible) accuracy. The events I am timing occur in < 1ms, so I know measuring execution time probably isn't the best way to go about this, but it's what I have to work with.
At the moment, I'm using System.nanoTime() and inserting that value into a static array, which leads me to my second question: Can someone give me information on, or point me in the direction of information on, accessing static data structures vs something like a singleton?
Any help greatly appreciated.