Go to the source code of this file.
◆ main()
Definition at line 21 of file PAPI_get_real_cyc.c.
22{
23 long long s,s1, e, e1;
25
26
27
28
29
30
31
32
33
35 {
36 printf("Library initialization error! \n");
37 exit(1);
38 }
39
40
41
42
43
45
47
48
50
52
54
56
57 printf(
"Wallclock cycles : %lld\nWallclock time(ms): %lld\n",e-
s,e1-s1);
58
59
61
62 exit(0);
63}
get real time counter value in clock cycles Returns the total real time passed since some arbitrary s...
get real time counter value in microseconds
initialize the PAPI library.
Finish using PAPI and free all related resources.
◆ your_slow_code()