SyntaxFix
Write A Post
Hire A Developer
Questions
Maybe try this code:
void wait (double x) { DateTime t = DateTime.Now; DateTime tf = DateTime.Now.AddSeconds(x); while (t < tf) { t = DateTime.Now; } }