commit | 96e6d5a8180bac4131ecca7e864e33cc74ed6956 | [log] [tgz] |
---|---|---|
author | Brian Silverman <brians> | Mon Mar 24 15:55:40 2014 -0700 |
committer | Brian Silverman <brians> | Mon Mar 24 15:55:40 2014 -0700 |
tree | 1208ac8eef9eb6697a84aa9eb2eb292a73faabe2 | |
parent | 19e04334f51e9977847808341756fe34efdb294b [diff] [blame] |
added and used Time support for Queue messages
diff --git a/aos/common/time.h b/aos/common/time.h index c646661..ca1d207 100644 --- a/aos/common/time.h +++ b/aos/common/time.h
@@ -47,7 +47,7 @@ static const int32_t kNSecInUSec = 1000; static const int32_t kMSecInSec = 1000; static const int32_t kUSecInSec = 1000000; - constexpr Time(int32_t sec, int32_t nsec) + constexpr Time(int32_t sec = 0, int32_t nsec = 0) : sec_(sec), nsec_(CheckConstexpr(nsec)) { } #ifndef SWIG