Fix timing with trace.