Wait/sleep in automation code?

We have an achievement automation where one of the criteria will rely on doing a search of the user's content for a particular thing, using core_v2_searchResult.List. 

The problem is that the search index will lag behind the automation code firing, so we really need it to wait ~10 seconds before continuing.

Is there anything in the core code (JavaScript preferably) to allow us to do this?

If it isn't possibly using OOTB code, the only thing that came to mind was to make it do a HTTP call to a service that can delay things by a configurable amount, but that's not ideal.

Has anyone needed to do this?