all: Update code to compile with latest time-related changes in ndn-cpp-dev library
Change-Id: I7e859989c833001f49b286d4a9917f4dc740b4a4
diff --git a/daemon/table/cs-entry.cpp b/daemon/table/cs-entry.cpp
index 108a050..9e99886 100644
--- a/daemon/table/cs-entry.cpp
+++ b/daemon/table/cs-entry.cpp
@@ -78,7 +78,7 @@
return m_isUnsolicited;
}
-const time::Point&
+const time::steady_clock::TimePoint&
Entry::getStaleTime() const
{
return m_staleAt;
@@ -87,8 +87,7 @@
void
Entry::updateStaleTime()
{
- time::Duration freshness = time::milliseconds(m_dataPacket->getFreshnessPeriod());
- m_staleAt = time::now() + freshness;
+ m_staleAt = time::steady_clock::now() + m_dataPacket->getFreshnessPeriod();
}
bool