예제 #1
0
 def txtime(self, prob=None, length=1200):
     if prob is None: prob = self.prob()
     if prob == 0:
         return float('inf')
     else:
         return rates.tx_time(self.idx, length) / prob
예제 #2
0
 def txtime(self, prob=None, length=1200):
     if prob is None: prob = self.prob()
     if prob == 0:
         return float('inf')
     else:
         return rates.tx_time(self.idx, length) / prob
예제 #3
0
 def txtime_perfect(self, length=1200):
     return rates.tx_time(self.idx, length)
예제 #4
0
 def txtime_perfect(self, length=1200):
     return rates.tx_time(self.idx, length)