diff options
author | Nicolas Noble <nnoble@google.com> | 2015-04-07 18:01:18 -0700 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-04-08 05:42:08 +0200 |
commit | 89219162dd613b58da8f3cd418f4825a5d566da5 (patch) | |
tree | 3c3a4b0a299e7df62caff4562863bde6377d965a /src/cpp/util/time.cc | |
parent | 9973aa3aa6e29e5949f9a330cc3c1eb92c0a5830 (diff) |
Refactoring std::chrono out.
Diffstat (limited to 'src/cpp/util/time.cc')
-rw-r--r-- | src/cpp/util/time.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cpp/util/time.cc b/src/cpp/util/time.cc index 059ea72abf..1fef2a56de 100644 --- a/src/cpp/util/time.cc +++ b/src/cpp/util/time.cc @@ -31,9 +31,12 @@ * */ -#include "src/cpp/util/time.h" +#include <grpc++/config.h> + +#ifndef GRPC_CXX0X_NO_CHRONO #include <grpc/support/time.h> +#include <grpc++/time.h> using std::chrono::duration_cast; using std::chrono::nanoseconds; @@ -68,3 +71,5 @@ system_clock::time_point Timespec2Timepoint(gpr_timespec t) { } } // namespace grpc + +#endif // !GRPC_CXX0X_NO_CHRONO |