<?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[Laufzeit]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein Programm geschrieben und möchte nun wissen, wie lange es zum Durchlaufen braucht (in s und ms).<br />
Wie kann ich sowas machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/270787/laufzeit</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 22:11:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/270787.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Jul 2010 11:50:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Laufzeit on Sun, 18 Jul 2010 11:50:29 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein Programm geschrieben und möchte nun wissen, wie lange es zum Durchlaufen braucht (in s und ms).<br />
Wie kann ich sowas machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928034</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928034</guid><dc:creator><![CDATA[Lenja]]></dc:creator><pubDate>Sun, 18 Jul 2010 11:50:29 GMT</pubDate></item><item><title><![CDATA[Reply to Laufzeit on Sun, 18 Jul 2010 11:55:16 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Messen! Am besten mit einem Profiler.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928035</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928035</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 18 Jul 2010 11:55:16 GMT</pubDate></item><item><title><![CDATA[Reply to Laufzeit on Sun, 18 Jul 2010 11:59:05 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> Das dachte ich mir schon <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
Aber wie?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928037</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928037</guid><dc:creator><![CDATA[Lenja]]></dc:creator><pubDate>Sun, 18 Jul 2010 11:59:05 GMT</pubDate></item><item><title><![CDATA[Reply to Laufzeit on Sun, 18 Jul 2010 12:00:37 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Das kommt natürlich auf den Profiler an. Such doch mal mit google. Bei C# nehme ich dotTrace.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928039</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928039</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 18 Jul 2010 12:00:37 GMT</pubDate></item><item><title><![CDATA[Reply to Laufzeit on Sun, 18 Jul 2010 12:12:34 GMT]]></title><description><![CDATA[<p>Ich weiß gar nicht, was ein Profiler ist <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Ich hab es jetzt so gemacht:</p>
<pre><code>#include &lt;cstdio&gt;
#include &lt;windows.h&gt;

using namespace std;

int main(int argc, char *argv[])
{

    // Zeitmessung Start
    DWORD zeit = GetTickCount();

    /*Programm*/

    // Zeitmessung Ende
    zeit = GetTickCount()-zeit;
    cout&lt;&lt;&quot;Zeit: &quot;&lt;&lt;zeit;
}
</code></pre>
<p>Sollte es ich besser mit dem von dir vorgschlagenem Profiler machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928044</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928044</guid><dc:creator><![CDATA[Lenja]]></dc:creator><pubDate>Sun, 18 Jul 2010 12:12:34 GMT</pubDate></item><item><title><![CDATA[Reply to Laufzeit on Sun, 18 Jul 2010 12:14:11 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Geht auch so, aber da musst du immer im Quellcode rumschreiben. Such doch einfach mal nach Profiler, kann man immer mal gebrauchen, wie ich finde.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928046</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928046</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 18 Jul 2010 12:14:11 GMT</pubDate></item><item><title><![CDATA[Reply to Laufzeit on Sun, 18 Jul 2010 12:43:35 GMT]]></title><description><![CDATA[<p>Das ich im Quellcode rumschreiben muss, ist nicht so schlimm... ich muss es ja nur einmal machen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>In welcher Zeiteinheit arbeitet denn GetTickCount()?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928059</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928059</guid><dc:creator><![CDATA[Lenja]]></dc:creator><pubDate>Sun, 18 Jul 2010 12:43:35 GMT</pubDate></item><item><title><![CDATA[Reply to Laufzeit on Sun, 18 Jul 2010 12:51:15 GMT]]></title><description><![CDATA[<p>Lenja schrieb:</p>
<blockquote>
<p>In welcher Zeiteinheit arbeitet denn GetTickCount()?</p>
</blockquote>
<p>Sowas mußt Du selber rausfinden.<br />
<a href="http://www.google.de/#hl=de&amp;source=hp&amp;q=MSDN+GetTickCount" rel="nofollow">http://www.google.de/#hl=de&amp;source=hp&amp;q=MSDN+GetTickCount</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928062</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928062</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sun, 18 Jul 2010 12:51:15 GMT</pubDate></item><item><title><![CDATA[Reply to Laufzeit on Sun, 18 Jul 2010 13:01:49 GMT]]></title><description><![CDATA[<p>Ich habe eben keine Ahnung <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Aber Danke trotzdem <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928066</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928066</guid><dc:creator><![CDATA[Lenja]]></dc:creator><pubDate>Sun, 18 Jul 2010 13:01:49 GMT</pubDate></item><item><title><![CDATA[Reply to Laufzeit on Sun, 18 Jul 2010 14:50:46 GMT]]></title><description><![CDATA[<p>Blau-hellblau-blind? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /><br />
Oder anders formuliert: hast du den Link nicht gesehen? Die Antwort auf deine Frage steht nämlich im ersten Treffer.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928120</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928120</guid><dc:creator><![CDATA[Athar]]></dc:creator><pubDate>Sun, 18 Jul 2010 14:50:46 GMT</pubDate></item><item><title><![CDATA[Reply to Laufzeit on Sun, 18 Jul 2010 15:33:52 GMT]]></title><description><![CDATA[<p>Es sind Millisekunden...</p>
<p>Lg freeG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928153</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928153</guid><dc:creator><![CDATA[fr33g]]></dc:creator><pubDate>Sun, 18 Jul 2010 15:33:52 GMT</pubDate></item><item><title><![CDATA[Reply to Laufzeit on Mon, 19 Jul 2010 10:56:25 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> natürlich hab ich den Link gesehen und hab es auch rausgefunden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
ich meinte, dass ich generell nich viel Ahnung habe und ihr nachsichtig sein sollt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Danke nochmal für eure Geduld!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928497</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928497</guid><dc:creator><![CDATA[Lenja]]></dc:creator><pubDate>Mon, 19 Jul 2010 10:56:25 GMT</pubDate></item><item><title><![CDATA[Reply to Laufzeit on Mon, 19 Jul 2010 11:25:54 GMT]]></title><description><![CDATA[<p>&quot;ich habe ein Programm geschrieben und möchte nun wissen, wie lange es zum Durchlaufen braucht (in s und ms).&quot;</p>
<p>Hierzu können vorhandenen Time Funktionen verwendeet werden.<br />
Bei kleiner als 1 [s] sind diese Funktionen oft Betriebsystem speziefisch.</p>
<p>Das schon genannte GetTickCount() liefert<br />
z.B. ca. in 16 ms Rastern die Zeiten.</p>
<p>@all<br />
Profiler liefern selten die Laufzeit eines Programms,<br />
im Gegenteil sie verändern die Laufzeit eines Programmes u.U. extrem.<br />
Profiler, ... sind dann, wenn überhaupt,<br />
erst im nächsten Schritt erforderlich: Optimierung der Laufzeit.</p>
<p>Wie auch immer, gängige Zeitfunktionen sollte man kennen,<br />
einschätzen und anwenden können.</p>
<p>Gruß Frank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928513</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928513</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 19 Jul 2010 11:25:54 GMT</pubDate></item><item><title><![CDATA[Reply to Laufzeit on Mon, 19 Jul 2010 12:21:20 GMT]]></title><description><![CDATA[<pre><code>/usr/bin/time
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1928547</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928547</guid><dc:creator><![CDATA[knivil]]></dc:creator><pubDate>Mon, 19 Jul 2010 12:21:20 GMT</pubDate></item><item><title><![CDATA[Reply to Laufzeit on Mon, 19 Jul 2010 14:06:31 GMT]]></title><description><![CDATA[<p>Unter Windows ist das genaueste imho QueryPerformanceCounter</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928629</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928629</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Mon, 19 Jul 2010 14:06:31 GMT</pubDate></item><item><title><![CDATA[Reply to Laufzeit on Mon, 19 Jul 2010 14:08:36 GMT]]></title><description><![CDATA[<p><a href="http://svn.boost.org/svn/boost/sandbox/chrono/libs/chrono/doc/html/boost_chrono/overview.html" rel="nofollow">http://svn.boost.org/svn/boost/sandbox/chrono/libs/chrono/doc/html/boost_chrono/overview.html</a></p>
<p>Kaching</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928631</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928631</guid><dc:creator><![CDATA[boost__ wrumm wrumm]]></dc:creator><pubDate>Mon, 19 Jul 2010 14:08:36 GMT</pubDate></item></channel></rss>