[gem5] Change the way to calculate totalCkptTime.