Appium - Determining Wait Time

Hi,

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);
wait.until(ExpectedConditions.visibilityOfElementLocated());

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?