Corrected usage of the Time API in the Aggregator example based on Lambda expressions