> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/connectors/mariadb-connector-c/api-functions/mysql_get_timeout_value_ms.md).

# mysql\_get\_timeout\_value\_ms

## Syntax

```bnf
#include <mysql.h>

unsigned int mysql_get_timeout_value_ms(const MYSQL *mysql);
```

## Parameter

| Parameter | Description                                                                                                                                                                                                                                        |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `mysql`   | A connection handle previously allocated by [mysql\_init()](/docs/connectors/mariadb-connector-c/api-functions/mysql_init.md) and connected by [mysql\_real\_connect()](/docs/connectors/mariadb-connector-c/api-functions/mysql_real_connect.md). |

## Description

`mysql_get_timeout_value_ms` retrieves the current timeout value configured for asynchronous operations on the given connection, expressed in milliseconds.

## Return Value

The timeout value in milliseconds as an `unsigned int`.

{% hint style="info" %}
**This function is deprecated.** Use [`mariadb_get_infov()`](/docs/connectors/mariadb-connector-c/api-functions/mariadb_get_infov.md) with the `MARIADB_CONNECTION_ASYNC_TIMEOUT` option instead.
{% endhint %}

## See Also

* [`mysql_get_timeout_value()`](/docs/connectors/mariadb-connector-c/api-functions/mysql_get_timeout_value.md)
* [`mariadb_get_infov()`](/docs/connectors/mariadb-connector-c/api-functions/mariadb_get_infov.md)
