#include <stdio.h>
#include <time.h>
int main() {
int lcount=0, lmax=400000000;
time_t t1, t2;
time(&t1);
//read_pause = 1;
while (1) {
  lcount ++;
  if (lcount == lmax) {
    printf("lcount=%i\n", lcount);
    time(&t2);
    printf("В одном printf: t1=%s  t2=%s", ctime(&t1), ctime(&t2));
    printf("Сначала t1: %s", ctime(&t1));
    printf("Потом t2: %s", ctime(&t2));
    //lcount = 0;
    break;
  }
}
}
Печать:
lcount=400000000
В одном printf: t1=Sat May 5 23:19:18 2012 t2=Sat May 5 23:19:18 2012
Сначала t1: Sat May 5 23:19:18 2012
Потом t2: Sat May 5 23:19:20 2012
Ничего не понимаю.





