File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
absl/synchronization/internal Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ int64_t KernelTimeout::MakeAbsNanos() const {
8989 int64_t nanos = RawNanos ();
9090
9191 if (is_relative_timeout ()) {
92- int64_t now = ToUnixNanos ( absl::Now () );
92+ int64_t now = absl::GetCurrentTimeNanos ( );
9393 if (nanos > kMaxNanos - now) {
9494 // Overflow.
9595 nanos = kMaxNanos ;
@@ -118,7 +118,7 @@ struct timespec KernelTimeout::MakeRelativeTimespec() const {
118118 }
119119
120120 int64_t nanos = RawNanos ();
121- int64_t now = ToUnixNanos ( absl::Now () );
121+ int64_t now = absl::GetCurrentTimeNanos ( );
122122 if (now > nanos) {
123123 // Convert past values to 0 to be safe.
124124 nanos = 0 ;
@@ -146,7 +146,7 @@ KernelTimeout::DWord KernelTimeout::InMillisecondsFromNow() const {
146146 return static_cast <DWord>(ms);
147147 }
148148
149- int64_t now = ToUnixNanos ( absl::Now () );
149+ int64_t now = absl::GetCurrentTimeNanos ( );
150150 if (nanos >= now) {
151151 // Round up so that now + ms_from_now >= nanos.
152152 constexpr uint64_t kMaxValueNanos =
You can’t perform that action at this time.
0 commit comments