use time module to calculate the total running time and use cProfile to profile the running status