I\'ve got a problem. I\'m writing a benchmark and I have a function than is either done in 2 seconds or after ~5 minutes(depending on the input data). And I would like to st
Use an OS callbacks with a hi performance counter, then kill your thread, if exists