How to control time in appium when find element

For the benefit of those who come to this post looking for answer like me, please find below info how I got it working

1> Sample code

2> Refer to post for better info

3> Found an issue wrt this

Regards,
Vikram