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.h b/aos/time/time.h
index 8462625..f0b3a06 100644
--- a/aos/time/time.h
+++ b/aos/time/time.h
@@ -1,14 +1,14 @@
#ifndef AOS_TIME_H_
#define AOS_TIME_H_
-#include <sys/time.h>
-
#include <chrono>
-#include <cstdint>
#include <ctime>
+#include <limits>
#include <optional>
#include <ostream>
-#include <thread>
+#include <string>
+#include <string_view>
+#include <thread> // IWYU pragma: keep
namespace aos {