title: Comparing old variable value to new value in a while-statement?
body: <p>Why doesn't this code print "New time", more than once?
  And is it possible to fix, without calling clock() outside the loop?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;time.h&gt;
  int main(char argv[], int argc)
  {
      double lastTime = 0;
      while(1)
      {
          printf("New time:\n");
          while(lastTime == (lastTime = (double)clock() / (double)CLOCKS_PER_SEC))
          {
              printf("%f\n", lastTime);
          }
      }
      return 0;
  }
  </code></pre>