Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
fang::chrono::SimpleTimer Class Reference

#include <simple_timer.hpp>

Public Member Functions

 SimpleTimer ()
 
Microseconds getDurationAndReset ()
 
void reset ()
 
Microseconds getDuration () const
 

Detailed Description

Can time stuff up to 71 days within microsecond precision

Constructor & Destructor Documentation

◆ SimpleTimer()

fang::chrono::SimpleTimer::SimpleTimer ( )

Automatically sets current moment to that of its creation :) Sounds a bit mystical imo

Member Function Documentation

◆ getDuration()

Microseconds fang::chrono::SimpleTimer::getDuration ( ) const

Returns the duration

◆ getDurationAndReset()

Microseconds fang::chrono::SimpleTimer::getDurationAndReset ( )

Resets the count and returns the duration. Slightly more accurate.

◆ reset()

void fang::chrono::SimpleTimer::reset ( )

Resets the count


The documentation for this class was generated from the following files: