# timeToNext

[**@buff-beacon-project/curby-client**](../index) • **Docs**

***

[@buff-beacon-project/curby-client](../index) / timeToNext

## Function: timeToNext()

> **timeToNext**(`obj`?): `number`

Time until next rng pulse in milliseconds

### Parameters

| Parameter | Type                                                  | Description                                             |
| --------- | ----------------------------------------------------- | ------------------------------------------------------- |
| `obj`?    | `null` \| `string` \| `number` \| `Pulse` \| `object` | A timestamp, pulse, or object with a timestamp property |

### Returns

`number`

Time until next pulse in milliseconds

### Defined in

[src/timing.ts:12](https://github.com/buff-beacon-project/curby-js-client/blob/95397f5e9fcc8ad57ef410c54473862e0b83bc59/src/timing.ts#L12)
