Does anyone have any code that can be used to test the speed of running some code. From my research (Performance Tool capable of testing code for speed, Lightweight load & performance testing frameworks), it appears that people simply use tools to do this (JMeter, HPLoadRunner).
But, I am looking to see if there is a piece of code that can be embedded in the script to monitor the speed of executing the code.