[feature] Create statistics in intervals.