# zx::clock

## Summary

### Inheritance

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

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock_1a2e9ce13d4f038a8fb05e6599c8143adc()` ||
| `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock_1a1b8be342370501593211e000419375f7(zx_handle_t value)` ||
| `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock_1aeaebdfc918bcafbf9306b1368ff4fa77(https://fuchsia.dev/reference/cpp/class/zx/object#classzx_1_1object && h)` ||
| `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock_1abacbfb8c88c4a870fd424a18d4896b0c(https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock && other)` ||

| ### Public static attributes ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock_1ac52e46579de4023bbc5c77d326f5c84f = ZX_OBJ_TYPE_CLOCK` | `constexpr zx_obj_type_t` |

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock_1a945e9882000064ed192459bafe96db40(7)` | `class https://fuchsia.dev/reference/cpp/class/zx/clock/update-args#classzx_1_1clock_1_1update__args` |
| `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock_1aa65b6ec7a96e2748ad87fa5944ca4f60(https://fuchsia.dev/reference/cpp/struct/zx-clock-details-v1#structzx__clock__details__v1 *details_out)` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock_1a95989a7a3d6e63b33f6c8cc1f8fe31dd() const ` | `zx_handle_t` |
| `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock_1a721b41066850dbf45ebfbfc4f2b9df6f(https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock && other)` | `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock &` |
| `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock_1a68f7df4411440a88001ddb4e8d4a7534(zx_time_t *now_out)` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock_1a0f03ae25da7d510521a3bd623a980968(const https://fuchsia.dev/reference/cpp/class/zx/clock/update-args#classzx_1_1clock_1_1update__args & args)` | `zx_status_t` |

| ### Public static functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock_1ab3f90ef98619117b7e31ded138ad38f0(uint64_t options, const https://fuchsia.dev/reference/cpp/struct/zx-clock-create-args-v1#structzx__clock__create__args__v1 *args, https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock *result)` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock_1ab39d86bb0d25380c7d39528c33ddb7fc()` | `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time` |
| `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock_1a46cc801281c273401dcc5b947b064e89(const void *addr, https://fuchsia.dev/reference/cpp/struct/zx-clock-details-v1#structzx__clock__details__v1 *details_out)` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock_1a1664d5b0bc3a78ac0dc8cec9c9e14768()` | `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time` |
| `https://fuchsia.dev/reference/cpp/class/zx/clock#classzx_1_1clock_1aec832bca4acd5d51258d020a4be5234a(const void *addr, zx_time_t *out_now)` | `zx_status_t` |

| ### Classes ||
|---|---|
| [zx::clock::update_args](https://fuchsia.dev/reference/cpp/class/zx/clock/update-args) |   |

## Public static attributes

### TYPE

```c++
constexpr zx_obj_type_t TYPE = ZX_OBJ_TYPE_CLOCK
```

## Public functions

### ZX_AVAILABLE_SINCE

```c++
class zx::clock::update_args ZX_AVAILABLE_SINCE(
  7
)
```

### clock

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

### clock

```c++
 clock(
  zx_handle_t value
)
```

### clock

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

### clock

```c++
 clock(
  clock && other
)
```

### get_details

```c++
zx_status_t get_details(
  zx_clock_details_v1_t *details_out
)
```

### get_handle

```c++
zx_handle_t get_handle() const 
```

### operator=

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

### read

```c++
zx_status_t read(
  zx_time_t *now_out
)
```

### update

```c++
zx_status_t update(
  const update_args & args
)
```

## Public static functions

### create

```c++
zx_status_t create(
  uint64_t options,
  const zx_clock_create_args_v1 *args,
  clock *result
)
```

### get_boot

```c++
time_boot get_boot()
```

### get_details_mapped

```c++
zx_status_t get_details_mapped(
  const void *addr,
  zx_clock_details_v1_t *details_out
)
```

### get_monotonic

```c++
time get_monotonic()
```

### read_mapped

```c++
zx_status_t read_mapped(
  const void *addr,
  zx_time_t *out_now
)
```