Use base::TimeTicks.
base::Time is wall clock time which might be decreased, base::TimeTicks
should be used to track the time difference.
Test: unit test
Change-Id: I1ed2c74137955a8351815ebda8e6c7330d7b1012
diff --git a/payload_consumer/delta_performer.h b/payload_consumer/delta_performer.h
index 7f6fa9b..402e4be 100644
--- a/payload_consumer/delta_performer.h
+++ b/payload_consumer/delta_performer.h
@@ -399,13 +399,13 @@
// and the actual point in time for the next forced log to be emitted.
const base::TimeDelta forced_progress_log_wait_{
base::TimeDelta::FromSeconds(kProgressLogTimeoutSeconds)};
- base::Time forced_progress_log_time_;
+ base::TimeTicks forced_progress_log_time_;
// The frequency that we should write an update checkpoint (constant), and
// the point in time at which the next checkpoint should be written.
const base::TimeDelta update_checkpoint_wait_{
base::TimeDelta::FromSeconds(kCheckpointFrequencySeconds)};
- base::Time update_checkpoint_time_;
+ base::TimeTicks update_checkpoint_time_;
DISALLOW_COPY_AND_ASSIGN(DeltaPerformer);
};