def idletime(self):
        """Return how long it's been since the last activity from the
        player.
        """
        delta = twcommon.misc.now() - self.lastmsgtime
        return datetime.timedelta(seconds=int(delta.total_seconds()))
dataset/ETHPy150Open erkyrath/tworld/lib/tweblib/connections.py/Connection.idletime/original