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

Unified Diff: gpu/perftests/measurements.cc

Issue 1424703003: Kills TraceTicks, which was functionally the same as TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed win compile error. Created 5 years, 1 month 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 | « gpu/perftests/measurements.h ('k') | ipc/ipc_message_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/perftests/measurements.cc
diff --git a/gpu/perftests/measurements.cc b/gpu/perftests/measurements.cc
index 645784d122f183758bc4b84058dc3d2a829f15df..8909b28c12b97ebb62b5c7a28d58d3e11cfdb23e 100644
--- a/gpu/perftests/measurements.cc
+++ b/gpu/perftests/measurements.cc
@@ -55,7 +55,7 @@ Measurement::~Measurement() {
MeasurementTimers::MeasurementTimers(gfx::GPUTimingClient* gpu_timing_client)
: wall_time_start_(), cpu_time_start_(), gpu_timer_() {
DCHECK(gpu_timing_client);
- wall_time_start_ = base::TraceTicks::Now();
+ wall_time_start_ = base::TimeTicks::Now();
if (base::ThreadTicks::IsSupported()) {
base::ThreadTicks::WaitUntilInitialized();
cpu_time_start_ = base::ThreadTicks::Now();
@@ -72,7 +72,7 @@ MeasurementTimers::MeasurementTimers(gfx::GPUTimingClient* gpu_timing_client)
}
void MeasurementTimers::Record() {
- wall_time_ = base::TraceTicks::Now() - wall_time_start_;
+ wall_time_ = base::TimeTicks::Now() - wall_time_start_;
if (base::ThreadTicks::IsSupported()) {
cpu_time_ = base::ThreadTicks::Now() - cpu_time_start_;
}
« no previous file with comments | « gpu/perftests/measurements.h ('k') | ipc/ipc_message_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698