ecto
time.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <stdint.h>//int64_t
3 #include <boost/date_time/posix_time/ptime.hpp>
4 #include <boost/date_time/posix_time/posix_time_duration.hpp>
5 
6 namespace ecto{
7  typedef uint64_t stamp_t;
8  typedef boost::posix_time::ptime ptime_t;
9  typedef boost::posix_time::time_duration ptime_duration_t;
10  typedef boost::posix_time::hours hours_t;
11  typedef boost::posix_time::minutes minutes_t;
12  typedef boost::posix_time::seconds seconds_t;
13  typedef boost::posix_time::millisec millisec_t;
14  typedef boost::posix_time::microsec microsec_t;
15 #if defined(BOOST_DATE_TIME_HAS_NANOSECONDS)
16  typedef boost::posix_time::nanosec nanosec_t;
17 #endif
18 
23  stamp_t microseconds();
24  ptime_t local_time();
25  ptime_t universal_time();
26 }
uint64_t stamp_t
Definition: time.hpp:7
boost::posix_time::time_duration ptime_duration_t
Definition: time.hpp:9
boost::posix_time::minutes minutes_t
Definition: time.hpp:11
boost::posix_time::millisec millisec_t
Definition: time.hpp:13
boost::posix_time::hours hours_t
Definition: time.hpp:10
stamp_t microseconds()
boost::posix_time::ptime ptime_t
Definition: time.hpp:8
Definition: parameters.hpp:11
ptime_t universal_time()
boost::posix_time::microsec microsec_t
Definition: time.hpp:14
ptime_t local_time()
boost::posix_time::seconds seconds_t
Definition: time.hpp:12