Report query elapsed time as a function of their state changes