diff options
author | Josh Gao <jmgao@google.com> | 2017-05-01 20:49:49 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-05-01 20:49:50 +0000 |
commit | eaad4e28e885fac2b8203ed529c5e4c558ce989f (patch) | |
tree | 9d2a9ce1a0412c8702ef9d187e959d6df133eb91 /base/include/android-base/chrono_utils.h | |
parent | d6f8b5f2d48413d365f0846eb53178145d0d7687 (diff) | |
parent | ae29339ca138648eeaee68f801feb02d85ee2abf (diff) |
Merge "base: make boot_clock work on host linux, hide it on non-linux."
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 |