You can ping a random address and specify the desired timeout:
And since the address does not exists, it'll wait 10,000 ms (10 seconds) and returns.
-w 10000part specifies the desired timeout in milliseconds.
-n 1part tells ping that it should only tries once (normally it'd try 4 times).
> nulpart is appended so the ping command doesn't output anything to screen.