Corrected return type for getElapsedTimeMilli.