Added a simple wrapper for taking the time.
Not tested yet
Simple modification to the interface of TimeStatistic