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