#NEWLINE# def __init__( self , tick_interval = DEFAULT_TICK_INTERVAL ) : #NEWLINE# #INDENT# self . tick_interval = tick_interval #NEWLINE# self . m1 = EWMA ( 1 , tick_interval ) #NEWLINE# self . m5 = EWMA ( 5 , tick_interval ) #NEWLINE# self . m15 = EWMA ( 15 , tick_interval ) #NEWLINE# self . day = EWMA ( ( 60 * 24 ) , tick_interval ) #NEWLINE# self . started_on = self . latest_tick = time . time ( ) #NEWLINE# self . count = 0 #NEWLINE# self . lock = threading . Lock ( )