timeout 10 sleep 11

In this case, the command will timeout after 10 seconds, returning exit code 124.