changed order of resetting starttime so flushAck execution time is not counted