Add ToString for time_points

Adds ToString helper functions for aos's time_point classes that match
the format that LogReader expects for start/end_time.

Change-Id: Ied8635da70ceabb82328ea47b34f878084663bdd
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/time/time_test.cc b/aos/time/time_test.cc
index e8b7153..97116b0 100644
--- a/aos/time/time_test.cc
+++ b/aos/time/time_test.cc
@@ -225,4 +225,12 @@
   }
 }
 
+// Test that ToString works for monotonic and realtime time points.
+TEST(TimeTest, ToStringTimePoints) {
+  EXPECT_EQ(ToString(realtime_clock::epoch() + std::chrono::hours(5 * 24) +
+                     std::chrono::seconds(11) + std::chrono::milliseconds(5)),
+            "1970-01-06_00-00-11.005000000");
+  EXPECT_EQ(ToString(monotonic_clock::min_time), "-9223372036.854775808sec");
+}
+
 }  // namespace aos::time::testing