libmoost
|
Some xtime utils to hide ugly operations. More...
#include <xtime_util.hpp>
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 |
Some xtime utils to hide ugly operations.
Definition at line 36 of file xtime_util.hpp.
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.
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.
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.