Flush log files periodically

For low rate logs, disk bandwidth isn't the thing to worry about.  The
real concern is how long data sits in memory before being written to
disk.  Add a (configurable) threshold after which we flush data to disk
to bound the time.

Change-Id: Ia0be4a13a4840ec6b89c3ecafdeb3a1f1a82d4a2
diff --git a/aos/events/logging/log_edit.cc b/aos/events/logging/log_edit.cc
index 7eff9e7..78d5eff 100644
--- a/aos/events/logging/log_edit.cc
+++ b/aos/events/logging/log_edit.cc
@@ -42,7 +42,7 @@
 
     aos::logger::DetachedBufferWriter buffer_writer(
         FLAGS_logfile, std::make_unique<aos::logger::DummyEncoder>());
-    buffer_writer.QueueSizedFlatbuffer(&fbb);
+    buffer_writer.QueueSizedFlatbuffer(&fbb, aos::monotonic_clock::min_time);
 
     while (true) {
       absl::Span<const uint8_t> msg_data = span_reader.ReadMessage();