new clss to measure computation time