title: Program/algorithm to find the time complexity of any given program
body: <p>I like to know whether it is possible to "write a <strong>program</strong> or <strong>algorithm</strong>" <strong>to find the time complexity</strong> of any given program taken as input.</p>
  
  <p><strong>Input :</strong> any program (P) [in any language or of a particular language]</p>
  
  <p><strong>Output :</strong> time complexity of that program (P).</p>
  
  <p>Have there been any prior attempts to write such a program?
  Are there any algorithms available for this purpose?</p>
  
  <p>If so please provide the necessary links, references or with any kind of guidance possible.</p>