9 lines
283 B
C++
9 lines
283 B
C++
#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()));
|
|
}
|
|
}
|