示例#1
0
文件: time.hpp 项目: VicHao/fc
 time_point_sec operator = ( const fc::time_point& t )
 {
   utc_seconds = t.time_since_epoch().count() / 1000000ll;
   return *this;
 }
示例#2
0
 void set_time_point(const fc::time_point& t) {
    auto micro_since_epoch = t.time_since_epoch();
    auto msec_since_epoch  = micro_since_epoch.count() / 1000;
    slot = ( msec_since_epoch - EpochMs ) / IntervalMs;
 }
示例#3
0
文件: raw.hpp 项目: dbarobin/steem
 inline void pack( Stream& s, const fc::time_point& tp )
 {
    uint64_t usec = tp.time_since_epoch().count();
    s.write( (const char*)&usec, sizeof(usec) );
 }