The time is being calculated correctly only for the first trace