---
title: "Timer"
description: "This page lists the Rust SDK names for Timers."
canonical_url: "https://docs.superdurable.io/reference/rust/timer/"
source: "docs/reference/rust/timer.mdx"
locale: "en"
---

# Timer

This page lists the Rust SDK names for [Timers](https://docs.superdurable.io/concepts/primitives/timer.md).
The doc comment of each API gives its parameters, defaults, and errors. Read
them in the [Rust SDK API reference](https://docs.superdurable.io/reference/rust.md#api-reference).

<a id="api-names"></a>

## API names

| Task                                  | Rust API                                                                         | Dex behavior                                                                                   |
| ------------------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| Wait for a duration                   | **Timer::by_duration** in **wait_for**                                           | [Firing time](https://docs.superdurable.io/reference/server/runtime-data.md#timer-firing-time) |
| Give the Timer a stable ID            | **Condition::with_id** on the Timer condition                                    | [AnyCombinationOf](https://docs.superdurable.io/reference/rust/waits.md#anycombinationof)      |
| Combine a Timer with other conditions | **Wait::any_of**, **Wait::all_of**, and **Wait::any_combination_of**             | [Waits](https://docs.superdurable.io/reference/rust/waits.md)                                  |
| Check whether a Timer fired           | **Context::has_timer_fired** and **Context::has_any_timer_fired** in **execute** | [Condition results](https://docs.superdurable.io/reference/rust/waits.md#condition-results)    |
| Make a waiting Timer ready now        | **Client::skip_timer**, with **StepExecutionId** and **TimerId**                 | [Skip a Timer](https://docs.superdurable.io/reference/server/runtime-client.md#skip-a-timer)   |

<a id="example"></a>

## Example

Example: [examples/rust/src/primitives/timer/flow.rs](https://github.com/superdurable/dex/tree/main/examples/rust/src/primitives/timer/flow.rs)
