Upgraded the rest of Time.
Change-Id: I0ee083837e51d8f74a798b7ba14a3b6bb3859f35
diff --git a/aos/common/util/log_interval.h b/aos/common/util/log_interval.h
index 3a7a85f..8823341 100644
--- a/aos/common/util/log_interval.h
+++ b/aos/common/util/log_interval.h
@@ -12,7 +12,7 @@
// A class to help with logging things that happen a lot only occasionally.
//
// Intended use {
-// static LogInterval interval(::aos::time::Time::InSeconds(0.2));
+// static LogInterval interval(::std::chrono::millseconds(200));
//
// if (WantToLog()) {
// interval.WantToLog();
diff --git a/aos/common/util/phased_loop.cc b/aos/common/util/phased_loop.cc
index 9c81ffb..bea262d 100644
--- a/aos/common/util/phased_loop.cc
+++ b/aos/common/util/phased_loop.cc
@@ -3,13 +3,6 @@
namespace aos {
namespace time {
-void PhasedLoopXMS(int ms, int offset) {
- const Time frequency = Time::InMS(ms);
- SleepUntil((Time::Now() / static_cast<int32_t>(frequency.ToNSec())) *
- static_cast<int32_t>(frequency.ToNSec()) +
- frequency + Time::InUS(offset));
-}
-
int PhasedLoop::Iterate(const monotonic_clock::time_point now) {
const monotonic_clock::time_point next_time =
monotonic_clock::time_point(
diff --git a/aos/common/util/phased_loop.h b/aos/common/util/phased_loop.h
index 7614ed2..fbfe954 100644
--- a/aos/common/util/phased_loop.h
+++ b/aos/common/util/phased_loop.h
@@ -8,11 +8,6 @@
namespace aos {
namespace time {
-// Will not be accurate if ms isn't a factor of 1000.
-// offset is in us.
-// DEPRECATED(Brian): Use PhasedLoop instead.
-void PhasedLoopXMS(int ms, int offset);
-
// Handles sleeping until a fixed offset from some time interval.
class PhasedLoop {
public:
@@ -21,7 +16,7 @@
// 1.1s
// ...
// 10000.1s
- // offset must be >= Time::kZero and < interval.
+ // offset must be >= chrono::seconds(0) and < interval.
PhasedLoop(
const monotonic_clock::duration interval,
const monotonic_clock::duration offset = monotonic_clock::duration(0))