Return elapsed time in milliseconds.