Converted queue compiler to use time_point

Change-Id: I7f72d4bcdd801c6d19342f072276901f15380db9
diff --git a/aos/build/queues/output/message_dec.rb b/aos/build/queues/output/message_dec.rb
index 5b4e136..20a0c9d 100644
--- a/aos/build/queues/output/message_dec.rb
+++ b/aos/build/queues/output/message_dec.rb
@@ -331,8 +331,14 @@
     end
     if (@type == 'bool')
       args.push("#{parent}#{this_name} ? 'T' : 'f'")
-    elsif (@type == '::aos::time::Time')
-      args.push("AOS_TIME_ARGS(#{parent}#{this_name}.sec(), #{parent}#{this_name}.nsec())")
+    elsif (@type == '::aos::monotonic_clock::time_point')
+      args.push(["AOS_TIME_ARGS(static_cast<int32_t>(",
+                 "::std::chrono::duration_cast<::std::chrono::seconds>(",
+                 "#{parent}#{this_name}.time_since_epoch()).count()), ",
+                 "static_cast<int32_t>(::std::chrono::duration_cast<::std::chrono::nanoseconds>(",
+                 "#{parent}#{this_name}.time_since_epoch() - ",
+                 "::std::chrono::duration_cast<::std::chrono::seconds>(",
+                 "#{parent}#{this_name}.time_since_epoch())).count()))"].join(''))
     else
       args.push("#{parent}#{this_name}")
     end