Added asElapsedTime function