1#ifndef CLOCK_HPP_2FCBLXSJ
2#define CLOCK_HPP_2FCBLXSJ
4#include <boost/date_time/posix_time/posix_time_types.hpp>
13
14
19 typedef std::ratio<1, 1000 * 1000> period;
20 typedef std::chrono::duration<rep, period> duration;
21 typedef std::chrono::time_point<Clock> time_point;
22 typedef boost::posix_time::ptime date_time;
24 static constexpr bool is_steady() {
return true; }
25 static time_point at(
const date_time&);
26 static date_time at(
const time_point&);
27 static const date_time& epoch();
30
31
32
33
34 static time_point at(
const std::string& at);
ChunckPacket is a packet consisting of several memory chunks.
ByteBufferConvertible & operator[](OsiLayer ol)
ChunkPacket & merge(ChunkPacket &packet, OsiLayer from, OsiLayer to)
const ByteBufferConvertible & layer(OsiLayer ol) const
const ByteBufferConvertible & operator[](OsiLayer ol) const
ByteBufferConvertible & layer(OsiLayer ol)
std::size_t size(OsiLayer from, OsiLayer to) const
ChunkPacket extract(OsiLayer from, OsiLayer to)
std::size_t size(OsiLayer from, OsiLayer to) const
buffer_const_range operator[](OsiLayer layer) const
void set_boundary(OsiLayer, unsigned bytes)
const ByteBuffer & buffer() const
CohesivePacket(const ByteBuffer &buffer, OsiLayer layer)
void trim(OsiLayer from, unsigned bytes)
std::size_t size(OsiLayer single_layer) const
value_type operator[](size_type) const
byte_view_range(ByteBuffer &&)
byte_view_range(const ByteBuffer::const_iterator &, const ByteBuffer::const_iterator &)
ByteBuffer::const_pointer data() const