Hello everybody here
I want to ask about the best code for delaying some codes
I am begginer and I tried some codes like:
And like:
i know it isn`t good at all but it works fine.
the problem with this two codes that it makes the Ping Very high.
Thanks in advance
I want to ask about the best code for delaying some codes
I am begginer and I tried some codes like:
PHP Code:
System.Threading.Thread.Sleep(4000);
PHP Code:
int Z = 0;
DateTime Time = new DateTime();
Time = DateTime.Now;
while (Z == 0)
{
if (DateTime.Now > Time.AddMilliseconds(4000))
{
Z = 1;
}
if (Z == 1)
{
//Codes here
}
}
the problem with this two codes that it makes the Ping Very high.
Thanks in advance