<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[devshare.de - c++ zeit]]></title>
	<link rel="self" href="http://www.devshare.de/feed/atom/topic/40325/"/>
	<updated>2004-06-07T17:48:38Z</updated>
	<generator>PunBB</generator>
	<id>http://devshare.de/topic/40325/c-zeit/</id>
		<entry>
			<title type="html"><![CDATA[Re: c++ zeit]]></title>
			<link rel="alternate" href="http://devshare.de/post/43233/#p43233"/>
			<content type="html"><![CDATA[<p>Hi,</p><p>ich weiß ja nicht, wo du was haben willst, aber es könnte so z.B. gehen:</p><div class="codebox"><pre><code>// Timer in der standart WndProc...
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    switch( message ) 
    {    
    case WM_CREATE:

        SetTimer(hWnd, 0, 25, NULL);

    break;

    case WM_TIMER:
    
        // Render deine Szene oder mach sonst was....        
    break;

    case WM_DESTROY:

        KillTimer(hWnd, 0);
        
        PostQuitMessage(0);

    break;

    case WM_CLOSE:
        
        DestroyWindow(hWnd);

    break;

    default:

        return DefWindowProc( hWnd, message, wParam, lParam );
    }

    return 0;
}</code></pre></div><p>oder so (für eine Verzögerung)</p><div class="codebox"><pre><code>void verzögerung(unsigned int iDuration)
{
    unsigned int iEndTime;

    iEndTime= timeGetTime() + iDuration;
    while(timeGetTime() &lt; iEndTime) {}
}</code></pre></div><p>Es gibt da tausend Sachen. Google mal unter QueryperformanceCounter. Da solltestt du fündig werden.</p><p>naja,</p><p> Schönen Tag noch...</p>]]></content>
			<author>
				<name><![CDATA[robochrissi]]></name>
				<uri>http://devshare.de/user/2714/</uri>
			</author>
			<updated>2004-06-07T17:48:38Z</updated>
			<id>http://devshare.de/post/43233/#p43233</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[c++ zeit]]></title>
			<link rel="alternate" href="http://devshare.de/post/42542/#p42542"/>
			<content type="html"><![CDATA[<p>kennt jemand zeit funktionen wie zb warte fuer x sekunden, starte timer, wenn timer &gt;x mache ...</p>]]></content>
			<author>
				<name><![CDATA[DarkNova]]></name>
				<uri>http://devshare.de/user/3279/</uri>
			</author>
			<updated>2004-03-31T03:13:04Z</updated>
			<id>http://devshare.de/post/42542/#p42542</id>
		</entry>
</feed>

