I'm trying to figure out what should be the best method to do the following? I have a console application that works with httpwebrequest. In some part of my app I would like to do this:
agent.GetURL("http://site.com/etc.../");
Wait for 8-16 Seconds<-Should be random
Agent.GetURL("http://site.com/etc.../");
Wait for 4-6 Seconds etc...
request are time sensitive so the computer time should be different from each request I can't just request wait for it done and request again. I have read around about timers, thread.sleep. I afraid I don't have experience with stopping or pausing Don't want to come up with problems in the future. So if you can advice me what best method will be for this kind of code?
And Is it possible the timer/thread.sleep to be inside a function and use it when ever I need?
Thanks!
Edit: This program is invisible so I need a solution with out loading circle mouse :)