added totalTime()