Go to the source code of this file.
◆ main()
Definition at line 23 of file PAPI_get_virt_cyc.c.
24{
25 long long s,s1, e, e1;
27
28
29
30
31
32
33
34
35
37 {
38 printf("Library initialization error! \n");
39 exit(1);
40 }
41
42
43
44
45
47
49
50
52
54
56
58
59 printf(
"Virtual cycles : %lld\nVirtual time(ms): %lld\n",e-
s,e1-s1);
60
61
63
64 exit(0);
65}
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.
◆ your_slow_code()
◆ tmp