diff options
Diffstat (limited to 'base/include/android-base/chrono_utils.h')
-rw-r--r-- | base/include/android-base/chrono_utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/include/android-base/chrono_utils.h b/base/include/android-base/chrono_utils.h index 0086425e5a..795225b9c5 100644 --- a/base/include/android-base/chrono_utils.h +++ b/base/include/android-base/chrono_utils.h @@ -22,6 +22,7 @@ namespace android { namespace base { +#if defined(__linux__) // A std::chrono clock based on CLOCK_BOOTTIME. class boot_clock { public: @@ -30,6 +31,7 @@ class boot_clock { static time_point now(); }; +#endif // defined(__linux__) } // namespace base } // namespace android |