<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Sleep in der Standardbibliothek?]]></title><description><![CDATA[<p>Hallo zusammen!</p>
<p>Ich suche eine Funktion die mein Programm für eine gewisse Anzahl von ms anhält.<br />
Habe da bloß die Sleep Funktion gefunden. Das ist aber anscheinend eine System-Funktion die nur unter Windows läuft. (So stehts jedenfalls in der Hilfe)<br />
Kennt jemand eine Funktion der Standardbibliothek die sowohl unter windows, als auch unter linux läuft?</p>
<p>Danke schonmal im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/163488/sleep-in-der-standardbibliothek</link><generator>RSS for Node</generator><lastBuildDate>Sun, 13 Sep 2026 00:23:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/163488.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 30 Oct 2006 08:33:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Sleep in der Standardbibliothek? on Mon, 30 Oct 2006 08:33:05 GMT]]></title><description><![CDATA[<p>Hallo zusammen!</p>
<p>Ich suche eine Funktion die mein Programm für eine gewisse Anzahl von ms anhält.<br />
Habe da bloß die Sleep Funktion gefunden. Das ist aber anscheinend eine System-Funktion die nur unter Windows läuft. (So stehts jedenfalls in der Hilfe)<br />
Kennt jemand eine Funktion der Standardbibliothek die sowohl unter windows, als auch unter linux läuft?</p>
<p>Danke schonmal im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164261</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164261</guid><dc:creator><![CDATA[TomTom85]]></dc:creator><pubDate>Mon, 30 Oct 2006 08:33:05 GMT</pubDate></item><item><title><![CDATA[Reply to Sleep in der Standardbibliothek? on Mon, 30 Oct 2006 08:47:13 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>bau dir selber eine:</p>
<pre><code class="language-cpp">#if defined(WIN32) || defined(__WIN32__)
    void sleep(int i) { Sleep(i); }
#elif defined(linux) || defined(__linux__)
    void sleep(int i) { nanosleep(i); }
#else
    #error &quot;Unsupported Operating System&quot;
#endif
</code></pre>
<p><a href="http://tutorial.schornboeck.net/pp_if.htm" rel="nofollow">http://tutorial.schornboeck.net/pp_if.htm</a></p>
<p>MfG</p>
<p>GPC</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164273</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164273</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Mon, 30 Oct 2006 08:47:13 GMT</pubDate></item><item><title><![CDATA[Reply to Sleep in der Standardbibliothek? on Mon, 30 Oct 2006 08:54:40 GMT]]></title><description><![CDATA[<p>Oder du benutzt boost::thread::sleep in Verbindung mit boost::xtime, wie z.B. hier:<br />
<a href="http://whizzo.uoregon.edu/public/src/alphamail/imap_webcache/tests/thread.cc" rel="nofollow">http://whizzo.uoregon.edu/public/src/alphamail/imap_webcache/tests/thread.cc</a></p>
<p>Greetz</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164276</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164276</guid><dc:creator><![CDATA[Vellas]]></dc:creator><pubDate>Mon, 30 Oct 2006 08:54:40 GMT</pubDate></item></channel></rss>