title: Is there a way to measure query time in sqlite at runtime?
body: <p>I want to measure the execution time of each sql statement in sqlite. </p>
  
  <p>I understand in sqlite shell you could just do .timer on, but I am wondering how to do it in a pogrammerable way so that I could know how much time a sql statement takes when applications are accessing the database at real time, not just by replaying that statement in a shell afterwards?</p>
  
  <p>Could I just provide a plugin function for sqlite_profile?</p>
  
  <p>Thanks a lot  </p>