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