# tensorplay.cuda.tunable.set_max_tuning_duration Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.tunable.set_max_tuning_duration.html ```python tensorplay.cuda.tunable.set_max_tuning_duration(duration_ms: int) → None ``` Bound the time spent measuring one candidate, in milliseconds. Zero disables the limit. When both this and [set_max_tuning_samples()](/docs/generated/tensorplay.cuda.tunable.set_max_tuning_samples.html#tensorplay.cuda.tunable.set_max_tuning_samples) are set, the smaller bound wins; a measurement always runs at least one timed sample.