Frameworks for writing profilers, stopwatches, ...
You shoulda done a search, boyo:
Mark G. Saye has one [L1 ].