modifications to keep track of the time in tx and rx thread during long runs