Skip to content

Commit

Permalink
Make *Time explicitly nanoseconds duration for OS X.
Browse files Browse the repository at this point in the history
Signed-off-by: Harvey Tuch <htuch@google.com>
  • Loading branch information
htuch committed Aug 26, 2018
1 parent 1b3cbb2 commit 1c691f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/envoy/common/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ namespace Envoy {
* SystemTime should be used when getting a time to present to the user, e.g. for logging.
* MonotonicTime should be used when tracking time for computing an interval.
*/
typedef std::chrono::time_point<std::chrono::system_clock> SystemTime;
typedef std::chrono::time_point<std::chrono::steady_clock> MonotonicTime;
typedef std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> SystemTime;
typedef std::chrono::time_point<std::chrono::steady_clock, std::chrono::nanoseconds> MonotonicTime;

/**
* Abstraction for getting the current system time. Useful for testing.
Expand Down

0 comments on commit 1c691f4

Please sign in to comment.