Integrated time as part of metric computation. Made the metrics api more pluggable. Metrics are now maintaining persistant state of data.