How would i go about making an EFICIENT wait method, I am willing to download libraries.

Hope someone can help!