---
name: "PAPI_get_real_cyc"
section: "3"
platform: "linux"
package: "libpapi-dev"
version: "7.1.0-5+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PAPI_get_real_cyc"
---

# PAPI\_get\_real\_cyc(3)

get real time counter value in clock cycles Returns the total real time passed since some arbitrary starting point. The time is returned in clock cycles. This call is equivalent to wall clock time.

## NAME

PAPI\_get\_real\_cyc - get real time counter value in clock cycles Returns the total real time passed since some arbitrary starting point. The time is returned in clock cycles. This call is equivalent to wall clock time.

## SYNOPSIS

## Detailed Description

**Examples:**

```
s = PAPI_get_real_cyc();
your_slow_code();
e = PAPI_get_real_cyc();
printf("Wallclock cycles: %lld\en",e-s);
```

**See also**

PAPIF PAPI **PAPI\_get\_virt\_usec** **PAPI\_get\_virt\_cyc** **PAPI\_library\_init**

## Author

Generated automatically by Doxygen for PAPI from the source code.
