add a method to record elapsed time in tracer
add a method to record elapsed time in tracer