---
name: "PAPI_get_real_usec"
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_usec"
---

# PAPI\_get\_real\_usec(3)

get real time counter value in microseconds

## NAME

PAPI\_get\_real\_usec - get real time counter value in microseconds

## SYNOPSIS

## Detailed Description

This function returns the total real time passed since some arbitrary starting point. The time is returned in microseconds. This call is equivalent to wall clock time.

**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.
