MCPcopy Create free account
hub / github.com/AutonomousFieldRoboticsLab/SVIn / operator+

Method operator+

pose_graph/ThirdParty/DUtils/Timestamp.cpp:102–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102Timestamp Timestamp::operator+(double s) const {
103 unsigned long secs = (long)floor(s);
104 unsigned long usecs = (long)((s - (double)secs) * 1e6);
105
106 return this->plus(secs, usecs);
107}
108
109Timestamp Timestamp::plus(unsigned long secs, unsigned long usecs) const {
110 Timestamp t;

Callers

nothing calls this directly

Calls 1

plusMethod · 0.95

Tested by

no test coverage detected