Appium - Determining Wait Time


I would like to determine the time taken to find UI elements.

Let’s suppose that I have written code for an Explicit Wait time of 10 seconds.

WebDriverWait wait = new WebDriverWait(driver, 20);

So, the above attempts to find and return the element within 20 seconds. Let’s suppose that it took 13 seconds to find the element.

How can I determine the amount of time it took for the element to be found and returned using Appium methods?