# zx::timer

## Summary

### Inheritance

Inherits from: [zx::object\< timer \>](https://fuchsia.dev/reference/cpp/class/zx/object)

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/timer#classzx_1_1timer_1a2eac37a7405e24ca31da435c777ea4f7()` ||
| `https://fuchsia.dev/reference/cpp/class/zx/timer#classzx_1_1timer_1a9c8bb865ba71e045cce5a1f4db7eb53f(zx_handle_t value)` ||
| `https://fuchsia.dev/reference/cpp/class/zx/timer#classzx_1_1timer_1a539383d0280f447c0328ae88e6b1cbc3(https://fuchsia.dev/reference/cpp/class/zx/object#classzx_1_1object && h)` ||
| `https://fuchsia.dev/reference/cpp/class/zx/timer#classzx_1_1timer_1a8c692becb348d441720cc5151df9e51c(https://fuchsia.dev/reference/cpp/class/zx/timer#classzx_1_1timer && other)` ||

| ### Public static attributes ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/timer#classzx_1_1timer_1ae32da3dbcafbc7c14c02980cec6b385f = ZX_OBJ_TYPE_TIMER` | `constexpr zx_obj_type_t` |

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/timer#classzx_1_1timer_1a3c003ea5facd7d5984b9b2aad82e7ec6()` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/class/zx/timer#classzx_1_1timer_1a63d43a2ea6fe6ff1e4d78274e22b9e26(https://fuchsia.dev/reference/cpp/class/zx/timer#classzx_1_1timer && other)` | `https://fuchsia.dev/reference/cpp/class/zx/timer#classzx_1_1timer &` |
| `https://fuchsia.dev/reference/cpp/class/zx/timer#classzx_1_1timer_1a94581ce969b3e7fd4ff2ab5486785eea(https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time< clockId > deadline, https://fuchsia.dev/reference/cpp/class/zx/duration#classzx_1_1duration slack)` | `zx_status_t` |

| ### Public static functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/timer#classzx_1_1timer_1a5d808626c33a2416de7291e5aa03378d(uint32_t options, zx_clock_t clock_id, https://fuchsia.dev/reference/cpp/class/zx/timer#classzx_1_1timer *result)` | `zx_status_t` |

## Public static attributes

### TYPE

```c++
constexpr zx_obj_type_t TYPE = ZX_OBJ_TYPE_TIMER
```

## Public functions

### cancel

```c++
zx_status_t cancel()
```

### operator=

```c++
timer & operator=(
  timer && other
)
```

### set

```c++
zx_status_t set(
  zx::basic_time< clockId > deadline,
  zx::duration slack
)
```

### timer

```c++
constexpr timer()=default
```

### timer

```c++
 timer(
  zx_handle_t value
)
```

### timer

```c++
 timer(
  handle && h
)
```

### timer

```c++
 timer(
  timer && other
)
```

## Public static functions

### create

```c++
zx_status_t create(
  uint32_t options,
  zx_clock_t clock_id,
  timer *result
)
```