Quote:
Originally Posted by n0mansland
Why doesnt this require a timer lol?
|
if you had a global thread, you could just use a datetime?
same for a global timer, you'd have to use 1 for it, but everything inside of it can be datetimes
example of a global timer:
public static void GlobalTimer(object Sender, ElapsedEventArgs Args)
{
try
{
DateTimes Inside
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
Console.WriteLine("Global Timer Failure!");
return;
}
example of a global thread:
public static void GlobalThread()
{
while(true)
{
try
{
if (DateTime.Now > GlobalThread.LastCheck.AddMilliseconds(20))
{
GlobalThread.LastCheck = DateTime.Now;
foreach (blabla)
{
DateTimes Here
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
Console.WriteLine("Global Thread Failure!");
return;
}
Thread.Sleep(1);
}