def __init__(self, decay=0.9995, max_seconds=10):
        """
        Args:
            decay: Decay factor of smoothed moving average
                    Default is 0.9995, which is approximately moving average 
                    of 2000 samples
            max_seconds: round down all time differences larger than specified
                        Useful when the application just started and there are long waits 
                        that might throw off the average
        """
        self.moving_average = ThreadSafeMovingAverageRecorder(decay)
        self.max_seconds = max_seconds
        self.started = False

        Args:
            decay: Decay factor of smoothed moving average
                    Default is 0.9995, which is approximately moving average 
                    of 2000 samples
            max_seconds: round down all time differences larger than specified
                        Useful when the application just started and there are long waits 
                        that might throw off the average
        
surreal/utils/common.py