Here is what I'm trying to do, I want a part of code in main() to run on a continuous loop to check the input and other things. And another part of code to run on delay of every X milliseconds.
while(true) //want this to run continuously, without any delay.
{
Input();
}
while(true) //want this to run every 1500 miliseconds.
{
DoSomething();
Sleep(1500); //from <windows.h> library.
}
Is there any way to do this properly?