MCPcopy Create free account
hub / github.com/AutonomousFieldRoboticsLab/SVIn / getStringTime

Method getStringTime

pose_graph/ThirdParty/DUtils/Timestamp.cpp:84–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82double Timestamp::getFloatTime() const { return double(m_secs) + double(m_usecs) / 1000000.0; }
83
84std::string Timestamp::getStringTime() const {
85 char buf[32];
86 sprintf(buf, "%.6lf", this->getFloatTime());
87 return std::string(buf);
88}
89
90double Timestamp::operator-(const Timestamp& t) const { return this->getFloatTime() - t.getFloatTime(); }
91

Callers

nothing calls this directly

Calls 1

getFloatTimeMethod · 0.95

Tested by

no test coverage detected