~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2010-12-31 06:44:35 UTC
  • mfrom: (2040.4.3 timestamp)
  • Revision ID: brian@tangent.org-20101231064435-g0h53tjfisjty2fy
Partial update to the time code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
716
716
 
717
717
void parse(Session *session, const char *inBuf, uint32_t length)
718
718
{
719
 
  boost::posix_time::ptime start_time=boost::posix_time::microsec_clock::local_time();
720
719
  session->lex->start(session);
721
720
 
722
721
  session->reset_for_next_command();
768
767
  session->set_proc_info("freeing items");
769
768
  session->end_statement();
770
769
  session->cleanup_after_query();
771
 
  boost::posix_time::ptime end_time=boost::posix_time::microsec_clock::local_time();
772
 
  session->status_var.execution_time_nsec+=(end_time-start_time).total_microseconds();
 
770
  session->set_end_timer();
773
771
}
774
772
 
775
773