16 for(
i=1;
i<200000;
i++)
25 long long s,s1, e, e1;
38 printf(
"Library initialization error! \n");
59 printf(
"Virtual cycles : %lld\nVirtual time(ms): %lld\n",e-
s,e1-s1);
get virtual time counter value in clock cycles
get virtual time counter values in microseconds
initialize the PAPI library.
Finish using PAPI and free all related resources.
Return codes and api definitions.