|
3-phase PV router
|
Functions | |
| void | begin () |
| Starts counting: from the last instruction on, one count per CPU cycle. | |
| uint32_t | end () |
| The cycles since begin(), its own instructions included. | |
| void | start () |
| Starts a measurement (the first one also measures the overhead). | |
| uint32_t | stop () |
| The CPU cycles since start(), without those of start() and stop(). | |
Variables | |
| bool | calibrated { false } |
| volatile uint16_t | overflows { 0 } |
| uint32_t | overhead { 0 } |
| uint8_t | savedTimsk0 { 0 } |
|
inline |
Starts counting: from the last instruction on, one count per CPU cycle.
Definition at line 37 of file bench_timer.h.

|
inline |
The cycles since begin(), its own instructions included.
Definition at line 52 of file bench_timer.h.

|
inline |
Starts a measurement (the first one also measures the overhead).
Definition at line 72 of file bench_timer.h.


|
inline |
The CPU cycles since start(), without those of start() and stop().
Definition at line 84 of file bench_timer.h.


|
inline |
Definition at line 34 of file bench_timer.h.
|
inline |
Timer1 overflows since start()
Definition at line 31 of file bench_timer.h.
|
inline |
cycles of an empty start()/stop()
Definition at line 33 of file bench_timer.h.
|
inline |
the Timer0 interrupts to restore in stop()
Definition at line 32 of file bench_timer.h.