~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session/times.h

  • Committer: Olaf van der Spek
  • Date: 2011-06-30 22:44:16 UTC
  • mto: This revision was merged to the branch mainline in revision 2362.
  • Revision ID: olafvdspek@gmail.com-20110630224416-hw5qqjvub0nmncwd
Move type::Time typedefs to common_fwd

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
class DRIZZLED_API Times
26
26
{
27
27
public:
28
 
        Times() :
 
28
  Times() :
29
29
    _epoch(boost::gregorian::date(1970, 1 ,1))
30
 
        {
31
 
    
 
30
  {
32
31
    _connect_time = boost::posix_time::microsec_clock::universal_time();
33
 
                utime_after_lock = 0;
34
 
        }
 
32
    utime_after_lock = 0;
 
33
  }
35
34
 
36
35
  uint64_t getConnectMicroseconds() const;
37
36
  uint64_t getConnectSeconds() const;
41
40
  void set_time_after_lock();
42
41
  void set_end_timer(Session&);
43
42
  uint64_t getElapsedTime() const;
44
 
  type::Time::epoch_t getCurrentTimestamp(bool actual= true) const;
45
 
  type::Time::epoch_t getCurrentTimestampEpoch() const;
46
 
  type::Time::epoch_t getCurrentTimestampEpoch(type::Time::usec_t& fraction_arg) const;
47
 
  type::Time::epoch_t query_start();
 
43
  type::epoch_t getCurrentTimestamp(bool actual= true) const;
 
44
  type::epoch_t getCurrentTimestampEpoch() const;
 
45
  type::epoch_t getCurrentTimestampEpoch(type::usec_t& fraction_arg) const;
 
46
  type::epoch_t query_start();
48
47
  boost::posix_time::ptime start_timer() const;
49
48
  boost::posix_time::ptime epoch() const;
50
49