#NEWLINE# def __init__( self , _time , milliseconds , bucket_numbers ) : #NEWLINE# #INDENT# self . time = _time #NEWLINE# self . milliseconds = milliseconds #NEWLINE# self . buckets = BucketCircular ( bucket_numbers ) #NEWLINE# self . bucket_numbers = bucket_numbers #NEWLINE# self . cumulative = CumulativeSum ( ) #NEWLINE# self . _new_bucket_lock = RLock ( ) #NEWLINE# if ( ( self . milliseconds % self . bucket_numbers ) != 0 ) : #NEWLINE# #INDENT# raise Exception ( 'The milliseconds must divide equally into bucket_numbers. For example 1000/10 is ok, 1000/11 is not.' )