Learn how to use the tshark or dumpcap command line utility with the autostop duration parameter.
This is a helpful tip if you run tshark or dumpcap from the command line manually or via batch files and dont want to control how long the capture runs.