Simpler runningTime() function.