~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_gearman/logging_gearman.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:
225
225
    if (not _gearman_client_ok)
226
226
        return false;
227
227
  
228
 
    /* TODO, the session object should have a "utime command completed"
229
 
       inside itself, so be more accurate, and so this doesnt have to
230
 
       keep calling current_utime, which can be slow */
231
 
  
232
 
    boost::posix_time::ptime mytime(boost::posix_time::microsec_clock::local_time());
233
 
    boost::posix_time::ptime epoch(boost::gregorian::date(1970,1,1));
234
 
    uint64_t t_mark= (mytime-epoch).total_microseconds();
 
228
    /* 
 
229
      TODO, the session object should have a "utime command completed"
 
230
      inside itself, so be more accurate, and so this doesnt have to
 
231
      keep calling current_utime, which can be slow.
 
232
    */
 
233
    uint64_t t_mark= session->getCurrentTimestamp(false);
235
234
  
236
235
 
237
236
    // buffer to quotify the query