Skip to content
Snippets Groups Projects

Rename time created

Merged Fabian Tërnava requested to merge armem/dev into master
2 files
+ 5
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -3,11 +3,17 @@
namespace armarx::armem::base
{
void EntityInstanceMetadata::access() const
{
numAccessed++;
lastAccessedTime = armarx::core::time::DateTime::Now();
}
bool EntityInstanceMetadata::operator==(const EntityInstanceMetadata& other) const
{
return timeCreated == other.timeCreated
&& timeSent == other.timeSent
&& timeArrived == other.timeArrived
return referencedTime == other.referencedTime
&& sentTime == other.sentTime
&& arrivedTime == other.arrivedTime
&& std::abs(confidence - other.confidence) < 1e-6f;
}
}
@@ -16,10 +22,11 @@ namespace armarx::armem::base
std::ostream& armarx::armem::base::operator<<(std::ostream& os, const EntityInstanceMetadata& d)
{
os << "EntityInstanceMetadata: "
<< "\n- t_create = \t" << armem::toStringMicroSeconds(d.timeCreated) << " us"
<< "\n- t_sent = \t" << armem::toStringMicroSeconds(d.timeSent) << " us"
<< "\n- t_arrived = \t" << armem::toStringMicroSeconds(d.timeArrived) << " us"
<< "\n- confidence = \t" << d.confidence << " us"
<< "\n - t_referenced = \t" << armem::toStringMicroSeconds(d.referencedTime) << " us"
<< "\n - t_sent = \t" << armem::toStringMicroSeconds(d.sentTime) << " us"
<< "\n - t_arrived = \t" << armem::toStringMicroSeconds(d.arrivedTime) << " us"
<< "\n - t_accessed = \t" << armem::toStringMicroSeconds(d.lastAccessedTime) << " us (" << d.numAccessed << ")"
<< "\n - confidence = \t" << d.confidence << " us"
;
return os;
}
Loading