title: Sleep() function windows 8 c++
body: <p>I'm attempting to get the Sleep() function working on a Windows 8 operating system, with c++. So far I haven't found any examples specific to this.</p>
  
  <p>Following from <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms686298%28v=vs.85%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desktop/ms686298%28v=vs.85%29.aspx</a> i've included the header <code>&lt;Synchapi.h&gt;</code>, though i get "Identifier "Sleep" is undefined". I am able to find the functions SleepConditionVariableCS() and SleepConditionVariableSRW() from Synchapi.h, but not Sleep().</p>
  
  <p>Has anyone managed to use Sleep() on a Windows 8 operating system or know why I am unable to find the function?</p>