fix error in dispatch latency

Historical event time measuring is fixed
clean up

removed some comments and debug logging