peerplays-fc/src/time.cpp

10 lines
283 B
C++
Raw Normal View History

2012-09-08 02:50:37 +00:00
#include <boost/chrono/system_clocks.hpp>
#include <fc/time.hpp>
namespace fc {
namespace bch = boost::chrono;
time_point time_point::now() {
return time_point(microseconds(bch::duration_cast<bch::microseconds>(bch::system_clock::now().time_since_epoch()).count()));
}
}