#include <timer.hpp>
|
typedef accumulator_type::size_type | size_type |
Definition at line 122 of file timer.hpp.
◆ size_type
typedef accumulator_type::size_type size_type |
◆ timer_t() [1/2]
◆ timer_t() [2/2]
◆ operator=()
◆ reset()
Resets the epoch of the timer to now
Definition at line 155 of file timer.hpp.
◆ reset_accumulator()
void reset_accumulator |
( |
| ) |
|
Resets the split time accumulator
Definition at line 163 of file timer.hpp.
◆ split()
- Returns
- The difference of time between the epoch and now, in milliseconds
Definition at line 170 of file timer.hpp.
◆ accrue()
Grabs a new split time and stores it in the accumulator.
Definition at line 180 of file timer.hpp.
◆ accrued_min()
double accrued_min |
( |
| ) |
const |
- Returns
- The smallest of the split times in the accumulator, in milliseconds
Definition at line 190 of file timer.hpp.
◆ accrued_max()
double accrued_max |
( |
| ) |
const |
- Returns
- The largest of the split times in the accumulator, in milliseconds
Definition at line 197 of file timer.hpp.
◆ accrued_average()
double accrued_average |
( |
| ) |
const |
- Returns
- The average of the split times in the accumulator, in milliseconds
Definition at line 204 of file timer.hpp.
◆ accrued_median()
double accrued_median |
( |
| ) |
const |
- Returns
- The median of the split times in the accumulator, in milliseconds
Definition at line 211 of file timer.hpp.
◆ accrued_total()
double accrued_total |
( |
| ) |
const |
- Returns
- The summation of the split times in the accumulator, in milliseconds
Definition at line 228 of file timer.hpp.
◆ size()
- Returns
- The number of split times in the accumulator
Definition at line 235 of file timer.hpp.
◆ empty()
- Returns
- Whether or not there are any split times in the accumulator
Definition at line 242 of file timer.hpp.
◆ report()
void report |
( |
const char * | decoration, |
|
|
std::ostream & | s = std::cout ) |
An archaic utility function that takes a new split time and outputs it to a stream
- Parameters
-
decoration | An identifier to apply to the split time. |
s | The stream to which output is written. Defaults to std::cout |
Definition at line 252 of file timer.hpp.
◆ operator==
◆ operator<