# ui.util.setInterval

<br />

Repeatedly calls a function with a fixed time delay between each call.

<br />

Returns a key that can be passed to ui.util.clearTimeout to remove the timeout.

| Usage | Returns |
|---|---|
| `ui.util.setInterval(func, delay)` | Number |

| Argument | Type | Details |
|---|---|---|
| `func` | Function | The function to run after the specified delay. |
| `delay` | Number | The time, in milliseconds (thousandths of a second), the timer should delay in between executions of the specified function. |