Added a getTimeElapsed() that returns double