added and used Time support for Queue messages
diff --git a/aos/common/common.gyp b/aos/common/common.gyp
index 8847d40..fdda3f7 100644
--- a/aos/common/common.gyp
+++ b/aos/common/common.gyp
@@ -57,6 +57,10 @@
'<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:shared_mem',
'<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:core_lib',
'mutex',
+ 'time',
+ ],
+ 'export_dependent_settings': [
+ 'time',
],
'actions': [
{
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