how to change time in the same line
<pre><code>int main()
{
    time_t ltime;
    time( &amp;ltime );
    tm *    pTm = localtime(&amp;ltime);
    while(true)
    {
        for(int i=0;i&lt;1000;i++)
        {
            if(i==999)
            {
                printf("Program time is: %02d:%02d:%02d \r", pTm-&gt;tm_hour, pTm-&gt;tm_min, pTm-&gt;tm_sec);
                i=0;
            }
        }

    }

}
</code></pre>

<p>but it's not looping !!?</p>
