~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session/times.cc

  • Committer: Mark Atwood
  • Date: 2011-07-07 02:23:07 UTC
  • mfrom: (2318.6.116 refactor18)
  • Revision ID: me@mark.atwood.name-20110707022307-4db00nqaaczzc3jv
mergeĀ lp:~olafvdspek/drizzle/refactor18

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
namespace drizzled {
24
24
namespace session {
25
25
 
26
 
type::Time::epoch_t Times::getCurrentTimestamp(bool actual) const
 
26
type::epoch_t Times::getCurrentTimestamp(bool actual) const
27
27
{
28
28
  return ((actual ? boost::posix_time::microsec_clock::universal_time() : _end_timer) - _epoch).total_microseconds();
29
29
}
30
30
 
31
 
type::Time::epoch_t Times::getCurrentTimestampEpoch() const
 
31
type::epoch_t Times::getCurrentTimestampEpoch() const
32
32
{
33
33
        return ((_user_time.is_not_a_date_time() ? _start_timer : _user_time) - _epoch).total_seconds();
34
34
}
35
35
 
36
 
type::Time::epoch_t Times::getCurrentTimestampEpoch(type::Time::usec_t &fraction_arg) const
 
36
type::epoch_t Times::getCurrentTimestampEpoch(type::usec_t &fraction_arg) const
37
37
{
38
38
  if (not _user_time.is_not_a_date_time())
39
39
  {
76
76
  utime_after_lock= (boost::posix_time::microsec_clock::universal_time() - _epoch).total_microseconds();
77
77
}
78
78
 
79
 
type::Time::epoch_t Times::query_start()
 
79
type::epoch_t Times::query_start()
80
80
{
81
81
  return getCurrentTimestampEpoch();
82
82
}