title: Codeigniter REST API elapsed time
body: <p>I'm using codeigniter REST-API (Author: philsturgeon Ref URL:  </p>
  
  <p><a href="https://github.com/philsturgeon/codeigniter-restserver" rel="nofollow">https://github.com/philsturgeon/codeigniter-restserver</a>)</p>
  
  <p>I want to add to the response how much time it took the service to generate and process the response.</p>
  
  <p>I am trying to use <code>$this-&gt;benchmark-&gt;elapsed_time()</code> in my controller, but it doesn't send the time instead it sends </p>
  
  <pre><code>"success": 1,"took": "{elapsed_time}",
  </code></pre>
  
  <p>I tried to edit the the main controller of the api <code>abstract class REST_Controller extends CI_Controller</code> and append the elapsed time to the final output send by <code>public function response($data = null, $http_code = null, $continue = false)</code></p>
  
  <p>But no luck, i keep receiving <code>"{elapsed_time}"</code> 
  Any help will be really appreciated.</p>