Small fix on elapsed time