1PAPI_get_real_cyc(3) PAPI PAPI_get_real_cyc(3)
2
3
4
6 PAPI_get_real_cyc - get real time counter value in clock cycles
7
8 PAPI_get_real_usec - get real time counter value in microseconds
9
10
12 C Interface
13 #include <papi.h>
14 long_long PAPI_get_real_cyc(void);
15 long_long PAPI_get_real_usec(void);
16 Fortran Interface
17 #include fpapi.h
18 PAPIF_get_real_usec(C_LONG_LONG time)
19 PAPIF_get_real_cyc(C_LONG_LONG real_cyc)
20
21
23 Both of these functions return the total real time passed since some
24 arbitrary starting point. The time is returned in clock cycles or
25 microseconds respectively. These calls are equivalent to wall clock
26 time.
27
28
30 These functions always succeed.
31
32
34 s = PAPI_get_real_cyc();
35 your_slow_code();
36 e = PAPI_get_real_cyc();
37 printf("Wallclock cycles: %lld\n",e-s);
38
39
41 These functions have no known bugs.
42
43
45 PAPI_library_init(3), PAPI_get_virt_cyc(3), PAPI_get_virt_usec(3),
46 PAPI(3), PAPIF(3)
47
48
49
50PAPI Programmer's Reference September, 2004 PAPI_get_real_cyc(3)