mimic ExecutionEventLogger to calculate duration

Change-Id: I3ad41f8ece82e705932e3c0c85d52401c590ccd6