Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Unified Diff: src/futex-emulation.cc

Issue 1285723003: Use TimeTicks instead of Time in FutexEmulation::Wait. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/futex-emulation.cc
diff --git a/src/futex-emulation.cc b/src/futex-emulation.cc
index 39f43dd7dd8c998e8ec571b5942194827a240f75..5a0ce07f1a545389e8d5431f09ff0adf39acc178 100644
--- a/src/futex-emulation.cc
+++ b/src/futex-emulation.cc
@@ -101,15 +101,15 @@ Object* FutexEmulation::Wait(Isolate* isolate,
}
}
- base::Time start_time = base::Time::NowFromSystemTime();
- base::Time timeout_time = start_time + rel_timeout;
+ base::TimeTicks start_time = base::TimeTicks::Now();
+ base::TimeTicks timeout_time = start_time + rel_timeout;
wait_list_.Pointer()->AddNode(node);
Object* result;
while (true) {
- base::Time current_time = base::Time::NowFromSystemTime();
+ base::TimeTicks current_time = base::TimeTicks::Now();
if (use_timeout && current_time > timeout_time) {
result = Smi::FromInt(Result::kTimedOut);
break;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698