iwyu: //aos/time/...
The full include-list for aos/time/time.h:
<chrono> // for nanoseconds, duration, duration_cast, operator/, time_point, seconds
<ctime> // for timespec
<limits> // for numeric_limits
<optional> // for optional
<ostream> // for ostream
<string> // for string
<string_view> // for string_view
The full include-list for aos/time/time.cc:
"aos/time/time.h"
<ctype.h> // for isdigit
<errno.h> // for EINTR
<sys/time.h> // for timeval
<algorithm> // for all_of
<chrono> // for duration_cast, operator+, duration, operator-, nanoseconds, seconds, operator<=>, chrono, microseconds, time_point
<compare> // for operator<, strong_ordering
<cstdint> // for uintmax_t, int64_t
<ctime> // for timespec, clock_gettime, CLOCK_MONOTONIC, tm, clock_nanosleep, localtime_r, mktime, time_t, CLOCK_REALTIME, TIMER_ABSTIME
<iomanip> // for operator<<, setfill, setw, get_time, operator>>, put_time
<ratio> // for ratio
<sstream> // for basic_istream
"absl/strings/numbers.h" // for SimpleAtoi
"glog/logging.h" // for ErrnoLogMessage, PCHECK
The full include-list for aos/time/time.h:
<chrono> // for nanoseconds, duration, duration_cast, operator/, time_point, seconds
<ctime> // for timespec
<limits> // for numeric_limits
<optional> // for optional
<ostream> // for ostream
<string> // for string
<string_view> // for string_view
The full include-list for aos/time/time_test.cc:
"aos/time/time.h"
<sys/time.h> // for timeval
<memory> // for allocator
"gtest/gtest.h" // for Test, Message, TestPartResult, EXPECT_EQ, TestInfo, TEST, CmpHelperGE, CmpHelperLT, EXPECT_GE, EXPECT_LT
Signed-off-by: Stephan Pleines <pleines.stephan@gmail.com>
Change-Id: I3896446a59e45a2ae9fb696c4ecd4d18f3080dbe
diff --git a/aos/time/time.cc b/aos/time/time.cc
index e75fe45..fe8422b 100644
--- a/aos/time/time.cc
+++ b/aos/time/time.cc
@@ -1,11 +1,16 @@
#include "aos/time/time.h"
+#include <ctype.h>
+#include <errno.h>
+#include <sys/time.h>
+
#include <algorithm>
#include <chrono>
-#include <cinttypes>
-#include <cstring>
+#include <compare>
+#include <cstdint>
#include <ctime>
#include <iomanip>
+#include <ratio>
#include <sstream>
#ifdef __linux__