adds #getElapsedTime() and unit tests