def METHOD_NAME(self, now):
    if now > self.last_tick > 0:
        elapsed = now - self.last_tick
        if self.ttl > 0:
            self.ttl = max(0, self.ttl - elapsed)
            if self.ttl == 0:
                self.despawn()
    self.last_tick = now