Move getTimeTask to measurement base class