title: How to impose a time limit constraint to an operation
body: <p>I have a (possibly) lengthy operation <em>a</em> to which I want to impose a limit time constraint <em>t</em> (in milliseconds). If operation <em>a</em> takes less than <em>t</em> milliseconds to complete then I return the answer from operation <em>a</em>; otherwise I want to abort the operation and return a proper error code stating that the time limit constraint was exceeded.</p>
  
  <p>How can I accomplish this in C#? If you have other ideas that are language agnostic feel free to share?</p>