Added TimeStat function from collect-service as a function of StatHat