Skip to content

Commit 1c691f4

Browse files
committed
Make *Time explicitly nanoseconds duration for OS X.
Signed-off-by: Harvey Tuch <[email protected]>
1 parent 1b3cbb2 commit 1c691f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/envoy/common/time.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ namespace Envoy {
1111
* SystemTime should be used when getting a time to present to the user, e.g. for logging.
1212
* MonotonicTime should be used when tracking time for computing an interval.
1313
*/
14-
typedef std::chrono::time_point<std::chrono::system_clock> SystemTime;
15-
typedef std::chrono::time_point<std::chrono::steady_clock> MonotonicTime;
14+
typedef std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> SystemTime;
15+
typedef std::chrono::time_point<std::chrono::steady_clock, std::chrono::nanoseconds> MonotonicTime;
1616

1717
/**
1818
* Abstraction for getting the current system time. Useful for testing.

0 commit comments

Comments
 (0)