コード例 #1
0
    def get_times(self, index=None):
        times = []

        if index is None:
            for time in self.timed_run:
                times.append(time.total())
        else:
            times = self.timed_run[index]
        return times
コード例 #2
0
ファイル: measure.py プロジェクト: ericumolu/measure
    def get_times(self,index=None):
        times = []

        if index is None:
            for time in self.timed_run:
                times.append(time.total())
        else:
            times = self.timed_run[index]
        return times    
コード例 #3
0
 def average(self):
     total = 0
     for time in self.timed_run:
         total += time.total()
     return total / len(self.timed_run)
コード例 #4
0
 def total_timed(self):
     total = 0
     for time in self.timed_run:
         total += time.total()
     return total
コード例 #5
0
ファイル: measure.py プロジェクト: ericumolu/measure
 def average(self):
     total = 0
     for time in self.timed_run:
         total += time.total()
     return total / len(self.timed_run)
コード例 #6
0
ファイル: measure.py プロジェクト: ericumolu/measure
 def total_timed(self):
     total = 0
     for time in self.timed_run:
         total += time.total()
     return total