#include <quantum.h>
Public Member Functions | |
| Timer (clockid_t ID=CLOCK_PROCESS_CPUTIME_ID) | |
| Create a new timer, but don't start it. | |
| void | reset () |
| Reset the timer as if it had just been created. | |
| void | start () |
| Start timing. Time is added to the elapsed time (i.e., this does not reset elapsed time to zero). | |
| void | stop () |
| Stop timing. Elapsed time is calculated and held. | |
| double | elapsed () |
| Return the total time elapsed between start() and stop() commands since the last reset(). | |
| double | average () |
| Return the average elapsed time for all of the start() - stop() cycles since the last reset(). | |
| double | resolution () |
| Return the smallest timestep that this timer can resolve. | |
1.4.4