From 942545df5ebb8154a92e471180ffa1290374619e Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Wed, 4 Jun 2014 14:59:11 -0400 Subject: [PATCH] adding variant for microseconds --- include/fc/time.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/fc/time.hpp b/include/fc/time.hpp index 34a635b..595e7d7 100644 --- a/include/fc/time.hpp +++ b/include/fc/time.hpp @@ -37,6 +37,10 @@ namespace fc { inline microseconds hours(int64_t h) { return minutes(60*h); } inline microseconds days(int64_t d) { return hours(24*d); } + class variant; + void to_variant( const fc::microseconds&, fc::variant& ); + void from_variant( const fc::variant& , fc::microseconds& ); + class time_point { public: explicit time_point( microseconds e = microseconds() ) :elapsed(e){}