fix issue 10: There is a case that CPU time is nagative