Is increasing Delay related to the speed of the Internet Connection.
Yes; Gaston's solution may be better however - very good Gaston.
Partly correct. What you're actually seeing is a delay caused by something called latency. This is the delay between a request sent and an answer received. Not to be confused with baud-rate, which is the amount of data which can be transferred per second.
See it as analogous to the time you wait between dialling a number and the recipient picking up the phone, as opposed to how fast the 2 of you can exchange words once the call is active. Only on the internet, this can be a situation of you dialling to numerous intermediaries to get to your final destination. Some of these might have different connections which require more control signals, which in turn would lengthen the latency. In most cases if a wireless connection happens somewhere the latency increases drastically (wireless tends to have multiple times more control signals than wired), that's usually why something like ADSL is preferred over 3G/HSDPA/LTE when your application needs to perform lots of small requests (like in online gaming), but makes little difference if your application makes one request to download a large file.
I've even had situations where latency is more than 1 second (i.e. set delay to more than 1000) on a mobile connection (i.e. HSDPA), but that same connection has a baud-rate of 4MB/s. While the ADSL's latency to the same server was only 60ms (i.e. a delay of 70 would be more than sufficient), but its baud ran at 256kb/s - less than a 1/10th of the HSDPA's. Though, you cannot compare the 2 directly - one may have more jumps to get to that same server than needed by the other.
The Ping idea is definitely the way to go with this, since it simply waits until an answer is received or a timeout occurs (usually after 5 seconds) - so no need to wait until something happens. This is in fact the testing utility to see if a connection between 2 nodes can be made.