---
name: "timer_can_simulate_retrace"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.1.15-5"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/timer_can_simulate_retrace"
---

# timer\_can\_simulate\_retrace(3alleg)

## NAME

timer\_can\_simulate\_retrace

## SYNOPSIS

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

**int timer\_can\_simulate\_retrace()**

## DESCRIPTION

Checks whether it is possible to sync the timer module with the monitor  retrace, given the current platform and environment (at the moment this  is only possible when running in clean DOS mode in a VGA or mode-X  resolution).

## RETURN VALUE

Returns non-zero if simulation is possible, zero otherwise.

## SEE ALSO

[**timer\_simulate\_retrace**(3alleg)](/timer_simulate_retrace/3alleg.md), [**timer\_is\_using\_retrace**(3alleg)](/timer_is_using_retrace/3alleg.md), [**ex3buf**(3alleg)](/ex3buf/3alleg.md)
