add method to cal the running time