(self, window=DEFAULT_WINDOW, clock=time)
Creates a SlidingTimeWindowSample.

        :param window: the length of the time window in seconds
        :param clock: clock.time() is called to get the current time as seconds
                      since the epoch.
Creates a SlidingTimeWindowSample.
Creates a SlidingTimeWindowSample .
def __init__(self, window=DEFAULT_WINDOW, clock=time):
        """Creates a SlidingTimeWindowSample.

        :param window: the length of the time window in seconds
        :param clock: clock.time() is called to get the current time as seconds
                      since the epoch.
        """
        self.window = window
        self.clock = clock
        self.clear()
def __init__ ( self , window = DEFAULT_WINDOW , clock = time ) : self . window = window self . clock = clock self . clear ( )