Added metrics package and TimeMetric class.