#pragma once #include #include namespace fc { namespace raw { template void unpack( Stream& s, fc::time_point& v ) { int64_t micro; fc::raw::unpack(s, micro ); v = fc::time_point( fc::microseconds(micro); } template void pack( Stream& s, const fc::time_point& v ) { fc::raw::pack( s, v.time_since_epoch().count() ); } } }