You can calculate the elapsed time by calling `uv_hrtime` before and after the wait.