Subversion Repositories shark

Compare Revisions

Regard whitespace Rev 1305 → Rev 1318

/demos/trunk/newtrace/utils/isolation.c
23,6 → 23,8
#define READ_BUFFER 2000
#define DELTA_BUFFER 100
 
#define CLKPERMSEC 699944
 
struct event_type {
int type;
unsigned long long tsc;
231,16 → 233,16
 
fclose(input_file);
 
printf("Total Time %d\n",(unsigned int)((stop-start) * 1000 / 501162));
printf("Total Time %d\n",(unsigned int)((stop-start) * 1000 / CLKPERMSEC));
 
printf("Total Ctx = %d\n",total_ctx);
 
printf("Total Interrupt = %d\n",(unsigned int)(int_time.total_time * 1000 / 501162));
printf("Total Interrupt = %d\n",(unsigned int)(int_time.total_time * 1000 / CLKPERMSEC));
 
total_simulation = 0;
for (i=0;i<total_ctx;i++) {
printf("Total Time Ctx %d => %d\n",ctx_time[i].ctx,(unsigned int)(ctx_time[i].total_time * 1000 / 501162));
total_simulation += (unsigned int)(ctx_time[i].total_time * 1000 / 501162);
printf("Total Time Ctx %d => %d\n",ctx_time[i].ctx,(unsigned int)(ctx_time[i].total_time * 1000 / CLKPERMSEC));
total_simulation += (unsigned int)(ctx_time[i].total_time * 1000 / CLKPERMSEC);
}
 
printf ("Total Simulation %d\n",total_simulation);