Adding time prof function --kazu