Home | History | Annotate | Download | only in update_manager

Lines Matching refs:Time

25 #include <base/time/time.h>
34 using base::Time;
86 // A variable reporting the time when a last update check was issued.
87 class LastCheckedTimeVariable : public UpdaterVariableBase<Time> {
90 : UpdaterVariableBase<Time>(name, kVariableModePoll, system_state) {}
93 const Time* GetValue(TimeDelta /* timeout */, string* errmsg) override {
98 return new Time(Time::FromTimeT(raw.last_checked_time()));
222 // A variable reporting the point in time an update last completed in the
225 // TODO(garnold) In general, both the current boottime and wallclock time
226 // readings should come from the time provider and be moderated by the
229 class UpdateCompletedTimeVariable : public UpdaterVariableBase<Time> {
232 : UpdaterVariableBase<Time>(name, kVariableModePoll, system_state) {}
235 const Time* GetValue(TimeDelta /* timeout */, string* errmsg) override {
236 Time update_boottime;
240 *errmsg = "Update completed time could not be read";
245 Time curr_boottime = clock->GetBootTime();
248 *errmsg = "Update completed time more recent than current time";
252 return new Time(clock->GetWallclockTime() - duration_since_update);