NAME
PAPI_get_real_cyc - get real time counter value in clock cycles
PAPI_get_real_usec - get real time counter value in microseconds
PAPI_get_real_ns - get real time counter value in nanoseconds
CONTENTS
Synopsis
Description
Errors
Example
Bugs
See Also
SYNOPSIS
C Interface
#include <papi.h>
long_long PAPI_get_real_cyc(void);
long_long PAPI_get_real_usec(void);
long_long PAPI_get_real_ns(void);
Fortran Interface
#include fpapi.h
PAPIF_get_real_cyc(C_LONG_LONG cyc)
PAPIF_get_real_usec(C_LONG_LONG us)
PAPIF_get_real_ns(C_LONG_LONG ns)
DESCRIPTION
All of these functions return the total real time passed since
some arbitrary starting point. The time is returned in clock cycles,
microseconds or nanoseconds respectively. These calls are equivalent to
wall clock time.
ERRORS
These functions always succeed.
EXAMPLE
s = PAPI_get_real_cyc();
your_slow_code();
e = PAPI_get_real_cyc();
printf("Wallclock cycles: %lld\n",e-s);
BUGS
These functions have no known bugs.
SEE ALSO
PAPI_library_init (3),
PAPI_get_virt_cyc (3),
PAPI (3),
PAPIF (3)
PAPI Programmers Reference | PAPI_get_real_cyc (3) | July, 2008 |
|
|