Possible Duplicate:
How to execute the loop for specific time
So, I have an infinite loop in C#, but the thing is, I want the loop to end at some point. Not based on a count or a loop interval, but based on a period of time, so once that period of time has passed, the loop ends. How do I do such a thing?