From 6c989e7b7ae9644d891229e2a243a0e36a36dea9 Mon Sep 17 00:00:00 2001 From: dnotestein Date: Mon, 31 Mar 2014 11:01:28 -0400 Subject: [PATCH] added minutes, hours, and days time functions --- include/fc/time.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/fc/time.hpp b/include/fc/time.hpp index 98e76dc..03c06e6 100644 --- a/include/fc/time.hpp +++ b/include/fc/time.hpp @@ -30,6 +30,9 @@ namespace fc { }; inline microseconds seconds( int64_t s ) { return microseconds( s * 1000000 ); } inline microseconds milliseconds( int64_t s ) { return microseconds( s * 1000 ); } + inline microseconds minutes(int64_t m) { return seconds(60*m); } + inline microseconds hours(int64_t h) { return minutes(60*h); } + inline microseconds days(int64_t d) { return hours(24*d); } class time_point { public: