logging durations to duration file