|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#include <simple_timer.hpp>
Public Member Functions | |
| SimpleTimer () | |
| Microseconds | getDurationAndReset () |
| void | reset () |
| Microseconds | getDuration () const |
Can time stuff up to 71 days within microsecond precision
| fang::chrono::SimpleTimer::SimpleTimer | ( | ) |
Automatically sets current moment to that of its creation :) Sounds a bit mystical imo
| Microseconds fang::chrono::SimpleTimer::getDuration | ( | ) | const |
Returns the duration
| Microseconds fang::chrono::SimpleTimer::getDurationAndReset | ( | ) |
Resets the count and returns the duration. Slightly more accurate.
| void fang::chrono::SimpleTimer::reset | ( | ) |
Resets the count