Interrupt: Need to keep track of time spent in routine or ... ?

Or one "if" statement repeated 500 times.