improve printing of duration