I get an error that I have to give my Timer more than 25 milliseconds:
Why I get for "sec" 0?:
- Code: Select all
TimeSpan p = time_last.AddSeconds(75) - DateTime.UtcNow;
int sec;
int.TryParse(p.TotalSeconds.ToString(), out sec);
Timer(sec);
by LaMey » October 30th, 2017, 3:46 pm
TimeSpan p = time_last.AddSeconds(75) - DateTime.UtcNow;
int sec;
int.TryParse(p.TotalSeconds.ToString(), out sec);
Timer(sec);
by nacra » October 31st, 2017, 1:27 am
PlayerIO.GameLibrary.Timer timer = this.AddTimer(delegate() { Console.WriteLine("test timer"); }, 24);