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

Method minus

pose_graph/ThirdParty/DUtils/Timestamp.cpp:129–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129Timestamp Timestamp::minus(unsigned long secs, unsigned long usecs) const {
130 Timestamp t;
131
132 const unsigned long max = 1000000ul;
133
134 if (m_usecs < usecs)
135 t.setTime(m_secs - secs - 1, max - (usecs - m_usecs));
136 else
137 t.setTime(m_secs - secs, m_usecs - usecs);
138
139 return t;
140}
141
142bool Timestamp::operator>(const Timestamp& t) const {
143 if (m_secs > t.m_secs)

Callers 1

operator-Method · 0.95

Calls 1

setTimeMethod · 0.45

Tested by

no test coverage detected