The original blog is Espresso: Elapsed time.
When do you need to write the test that needs to wait, you need to use
IdlingResource. Because Espresso does not wait for you.
Create simple elapsed time application, with one button and one text view. When to clicking the start button, the number will run until click stop button.