The most popular way to do it is by ping:
ping 1.1.1.1 -n NumberOfRetries -w TimeToWaitBetweenTries
so that it waits for approximately (NumberOfRetries) multiplied by (TimeToWaitBetweenTries) milliseconds.
If you want to suppress the output to the screen, just redirect it like this:
ping 1.1.1.1 -n 3 -w 1000 > null
