waitForObject

waitForObject waits for the given object using a
HighResolutionTime as timeout. This is equals to target.wait(),
but it uses the higher accuracy of HighResolutionTime and it can
handle AbsoluteTime and RelativeTime.

Parameters:

target - the target object to wait for.

time - The timeout given as AbsoluteTime or RelativeTime.

Throws:

java.lang.InterruptedException - if another thread caused this
thread to be interrupted during the wait.