public int getWindowIndex(long time) {
        long index = (time - from) / this.windowSlotSize;
        return (int) index;
    }
converts the timestamp to the matching window slot's reference timestamp

@param timestamp
@return
commons-timeseries/src/main/java/com/navercorp/pinpoint/common/timeseries/window/TimeWindow.java