Computer Science, asked by LavishaJain660, 1 year ago

How to use the sleep method in C#?

Answers

Answered by omegads04
0

#include <Windows.h>

else

#include < unistd.h>

end if

int main()

{

 pollingDelay = 100

  sleep:

 if def _WIN32

 Sleep(pollingDelay);

 else

 usleep(pollingDelay*1000);  /* sleep for 100 milliSeconds */

 endif

  do stuff again

 return 0;

}

Similar questions