---
name: "get_refresh_rate"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/get_refresh_rate"
---

# get\_refresh\_rate(3alleg)

Returns the current refresh rate. Allegro game programming library.

## NAME

get\_refresh\_rate - Returns the current refresh rate. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**int get\_refresh\_rate(void);**

## DESCRIPTION

Returns the current refresh rate, if known (not all drivers are able to  report this information). Returns zero if the actual rate is unknown.

## SEE ALSO

[**request\_refresh\_rate**(3alleg)](/request_refresh_rate/3alleg.md)
