totalTime and currentTime impl