Goby v2
Public Types | Static Public Member Functions | List of all members
boost::asio::time_traits< goby::common::GobyTime > Struct Template Reference

Time traits specialised for GobyTime. More...

#include <goby/common/time.h>

Public Types

typedef boost::posix_time::ptime time_type
 The time type.
 
typedef boost::posix_time::time_duration duration_type
 The duration type.
 

Static Public Member Functions

static time_type now ()
 Get the current time.
 
static time_type add (const time_type &t, const duration_type &d)
 Add a duration to a time.
 
static duration_type subtract (const time_type &t1, const time_type &t2)
 Subtract one time from another.
 
static bool less_than (const time_type &t1, const time_type &t2)
 Test whether one time is less than another.
 
static boost::posix_time::time_duration to_posix_duration (const duration_type &d)
 Convert to POSIX duration type.
 

Detailed Description

template<>
struct boost::asio::time_traits< goby::common::GobyTime >

Time traits specialised for GobyTime.

Definition at line 246 of file time.h.


The documentation for this struct was generated from the following file: