depending on the OS - yes.
For example in windows WaitForSingleObject with the handle of the curent thread will give the very exact result