aboutsummaryrefslogtreecommitdiff
path: root/include/perfetto/base/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/perfetto/base/time.h')
-rw-r--r--include/perfetto/base/time.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/perfetto/base/time.h b/include/perfetto/base/time.h
index de966f507..0ee60425d 100644
--- a/include/perfetto/base/time.h
+++ b/include/perfetto/base/time.h
@@ -20,12 +20,11 @@
#include <time.h>
#include <chrono>
-#include <string>
#include "perfetto/base/build_config.h"
#include "perfetto/base/logging.h"
-#if PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE)
+#if PERFETTO_BUILDFLAG(PERFETTO_OS_MACOSX)
#include <mach/mach_init.h>
#include <mach/mach_port.h>
#include <mach/mach_time.h>
@@ -59,7 +58,7 @@ inline TimeNanos GetBootTimeNs() {
return GetWallTimeNs();
}
-#elif PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE)
+#elif PERFETTO_BUILDFLAG(PERFETTO_OS_MACOSX)
inline TimeNanos GetWallTimeNs() {
auto init_time_factor = []() -> uint64_t {
@@ -180,8 +179,6 @@ inline struct timespec ToPosixTimespec(TimeMillis time) {
return ts;
}
-std::string GetTimeFmt(const std::string& fmt);
-
} // namespace base
} // namespace perfetto