Esempio n. 1
0
    def increment_timer(self, timeElapsed) :
        # Increment the T_B of all jobs by the elapsed time
        # NOTE: can't do `tb += timeElapsed` because += operator on
        #       a timedelta object isn't in-place. Go figure...
        for index in range(len(self.T_B)) :
            self.T_B[index] += timeElapsed

        TaskScheduler.increment_timer(self, timeElapsed)
Esempio n. 2
0
    def increment_timer(self, timeElapsed):
        # Increment the T_B of all jobs by the elapsed time
        # NOTE: can't do `tb += timeElapsed` because += operator on
        #       a timedelta object isn't in-place. Go figure...
        for index in range(len(self.T_B)):
            self.T_B[index] += timeElapsed

        TaskScheduler.increment_timer(self, timeElapsed)