> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class: Clock<Name>

> Reference for the Clock class in bijection/clocks.

[clocks](https://docs.bijection.com/api/modules/clocks).Clock

## Type parameters

| Name | Type |
| :- | :- |
| `Name` | extends `string` = `string` |

## Constructors

### constructor

• **new Clock**\<`Name`>(`identity`, `ticksPerSecond`)

#### Type parameters

| Name | Type |
| :- | :- |
| `Name` | extends `string` = `string` |

#### Parameters

| Name | Type |
| :- | :- |
| `identity` | `Name` |
| `ticksPerSecond` | [`Exact`](https://docs.bijection.com/api/modules/clocks#exact) |

## Properties

### ticksPerSecond

• `Readonly` **ticksPerSecond**: `Readonly`\<\{ `numerator`: `bigint` ; `denominator`: `bigint`  }>

***

### identity

• `Readonly` **identity**: `Name`

## Methods

### at

▸ **at**(`ticks`): [`Instant`](https://docs.bijection.com/api/classes/clocks.Instant)

#### Parameters

| Name | Type |
| :- | :- |
| `ticks` | [`Exact`](https://docs.bijection.com/api/modules/clocks#exact) |

#### Returns

[`Instant`](https://docs.bijection.com/api/classes/clocks.Instant)

***

### equals

▸ **equals**(`other`): `boolean`

#### Parameters

| Name | Type |
| :- | :- |
| `other` | [`Clock`](https://docs.bijection.com/api/classes/clocks.Clock) |

#### Returns

`boolean`

***

### wire

▸ **wire**(): `Object`

#### Returns

`Object`

| Name | Type |
| :- | :- |
| `identity` | `Name` |
| `ticks_per_second` | [`WireRatio`](https://docs.bijection.com/api/modules/clocks#wireratio) |

***

### fromWire

▸ `Static` **fromWire**(`value`): [`Clock`](https://docs.bijection.com/api/classes/clocks.Clock)

#### Parameters

| Name | Type |
| :- | :- |
| `value` | `unknown` |

#### Returns

[`Clock`](https://docs.bijection.com/api/classes/clocks.Clock)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.