All pastes #707774 Raw Edit

Zeug

public text v1 · immutable
#707774 ·published 2007-09-23 08:22 UTC
rendered paste body
/* system example : DIR */
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <windows.h>
#include <winbase.h>

int main ()
{
  int i,j,k,l;
  int top=999;
  char total[300];
  FILE *file1,*file2;
  file1=fopen("bebek.txt","w");
  
  
  _int64 tick=0;
  _int64 tick2=0;   
  long time=0;   

      

  for(i=1;i<=top;i++)
  {
      fprintf(file1,"app13win.exe %d 1 1 1\n",i);
  }   
  fclose(file1); 
  
  
  file2=fopen("bebek.txt","r");
  for(i=1;i<=top;i++)
  {
       fgets(total,300,file2);
	   QueryPerformanceCounter((LARGE_INTEGER *)&tick);
	       
//       system(total);
       Sleep(1000);
       QueryPerformanceCounter((LARGE_INTEGER *)&tick2);
       time=tick2-tick;             
       puts(total);
       printf(" start= %ld : end = %ld \n\n",tick,tick2);
	   printf(" diff= %ld \n\n",	 time);
  }
  fclose(file2);
      

      getchar();
  return 0;  
}