def _setup_timer(self):
        self._timer = self._connection.add_timeout(self._interval,
                                                   self.send_and_check)
Use the connection objects delayed_call function which is
dataset/ETHPy150Open pika/pika/pika/heartbeat.py/HeartbeatChecker._setup_timer