Stop executing CVX after a specific time interval without pressing "Ctrl+C" from keyboard

I wonder if there is a way to stop execution of CVX (e.g. Ctrl+C) after a specific time interval. I can do it manually using keyboard and pressing ‘Ctrl+C’ but since I am using a batch of problems and I want to specify a time limit for each problem. My code must be able to call “Ctrl+C” for each problem that exceeds a specific time interval, save the results and move to solve the next problem. Can I use the concept of “Ctrl+C” without using keyboard?