» New pastecode


» Posted by noname at 29/01/2006 18:50:36


» ID: http://wilcob.com/Wilco/Pastecode/2479/showpaste.aspx


» Language: C#


« Previous - Next »
1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 

private bool Delay(int x, int y) 
{
	Random rand = new Random();
        int delay_time = rand.Next(x, y);
	time_start = "";
	while(true) {
		current_time = "";
		time_diff = (current_time-time_start)*1000;
		if(time_diff >= delay_time) {
			return true;
		}
	}
}