How to set timeout for external-check

Hi, I have set up haproxy on DB servers with external check execute a shell script to run a query as the health check. I would like to know how to configure the timeout for the external check. I have tried “timeout check 10s” but it seemed not work.