Adding a time based DataCollector class for metrics