def advance_to(self, time):

        due_to_clock = self.comparer(self.clock, time)
        if due_to_clock > 0:
            raise ArgumentOutOfRangeException()

        if not due_to_clock:
            return

        if not self.is_enabled:
            self.is_enabled = True
            while self.is_enabled:
                next = self.get_next()
                if next and self.comparer(next.duetime, time) <= 0:
                    if self.comparer(next.duetime, self.clock) > 0:
                        self.clock = next.duetime

                    next.invoke()
                else:
                    self.is_enabled = False

            self.clock = time
Advances the schedulers clock to the specified time, running all
dataset/ETHPy150Open ReactiveX/RxPY/rx/concurrency/virtualtimescheduler.py/VirtualTimeScheduler.advance_to