Index: components/scheduler/child/virtual_time_tqm_delegate.cc |
diff --git a/components/scheduler/child/virtual_time_tqm_delegate.cc b/components/scheduler/child/virtual_time_tqm_delegate.cc |
index 2d7399ffce5cb46153004c55508d9a72a27bf90f..6f81fd06b3eb3de00c6c300b0d001c64e1f9f405 100644 |
--- a/components/scheduler/child/virtual_time_tqm_delegate.cc |
+++ b/components/scheduler/child/virtual_time_tqm_delegate.cc |
@@ -65,6 +65,10 @@ base::TimeTicks VirtualTimeTqmDelegate::NowTicks() { |
return now_; |
} |
+double VirtualTimeTqmDelegate::currentTime() const { |
+ return (now_ - base::TimeTicks::UnixEpoch()).InSecondsF(); |
+} |
+ |
void VirtualTimeTqmDelegate::AdvancedTimeTo(base::TimeTicks now) { |
now_ = now; |
DCHECK_GE(now, now_); |