A stream transformer for grouping events for a specified duration.