libmoost
moost::thread::xtime_util Struct Reference

Some xtime utils to hide ugly operations. More...

#include <xtime_util.hpp>

List of all members.

Static Public Member Functions

static boost::xtime now ()
 Returns now in boost::xtime.
static boost::xtime add_ms (const boost::xtime &time, int milliseconds)
 Adds the specified number of milliseconds to a boost::xtime.
static boost::xtime add_sec (const boost::xtime &time, int seconds)
 Adds the specified number of seconds to a boost::xtime.

Static Public Attributes

static const int NSECS_PER_SEC = 1000000000
static const int NSECS_PER_MILLISEC = 1000000

Detailed Description

Some xtime utils to hide ugly operations.

Definition at line 36 of file xtime_util.hpp.


Member Function Documentation

static boost::xtime moost::thread::xtime_util::add_ms ( const boost::xtime &  time,
int  milliseconds 
) [inline, static]

Adds the specified number of milliseconds to a boost::xtime.

Definition at line 52 of file xtime_util.hpp.

Here is the caller graph for this function:

static boost::xtime moost::thread::xtime_util::add_sec ( const boost::xtime &  time,
int  seconds 
) [inline, static]

Adds the specified number of seconds to a boost::xtime.

Definition at line 77 of file xtime_util.hpp.

static boost::xtime moost::thread::xtime_util::now ( ) [inline, static]

Returns now in boost::xtime.

Definition at line 43 of file xtime_util.hpp.

Here is the caller graph for this function:


Member Data Documentation

const int moost::thread::xtime_util::NSECS_PER_MILLISEC = 1000000 [static]

Definition at line 39 of file xtime_util.hpp.

const int moost::thread::xtime_util::NSECS_PER_SEC = 1000000000 [static]

Definition at line 38 of file xtime_util.hpp.


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