#include <sys/times.h>
#include <sys/types.h>


void print_times(void);

void print_times()
  {
  struct tms bufor;
  long wynik;
  
  wynik = times(&bufor);
  
  printf("\n");
  printf("utime = %ld	 ", bufor . tms_utime);
  printf("stime = %ld\n", bufor . tms_stime);
  printf("cutime = %ld	 ", bufor . tms_cutime);
  printf("cstime = %ld\n", bufor . tms_cstime);
  
  printf("jiffies = %ld\n", wynik);
  }

main()
  {
  long i;
  
  print_times();
  
  for(i = 0; i < (1 << 20); i++);
  
  print_times();
  
  for(i = 0; i < 100; i++)
  	if(!fork())
  		exit(0);
  	else
  		wait(0);
  
  print_times();
  }
    