#include <timer.hpp>
List of all members.
Detailed Description
Definition at line 126 of file timer.hpp.
Member Typedef Documentation
typedef accumulator_type::size_type size_type |
Member Function Documentation
Grabs a new split time and stores it in the accumulator.
Definition at line 224 of file timer.hpp.
double accrued_average |
( |
) |
const |
- Returns:
- The average of the split times in the accumulator, in milliseconds
Definition at line 248 of file timer.hpp.
double accrued_max |
( |
) |
const |
- Returns:
- The largest of the split times in the accumulator, in milliseconds
Definition at line 240 of file timer.hpp.
double accrued_median |
( |
) |
const |
- Returns:
- The median of the split times in the accumulator, in milliseconds
Definition at line 256 of file timer.hpp.
double accrued_min |
( |
) |
const |
- Returns:
- The smallest of the split times in the accumulator, in milliseconds
Definition at line 232 of file timer.hpp.
double accrued_total |
( |
) |
const |
- Returns:
- The summation of the split times in the accumulator, in milliseconds
Definition at line 274 of file timer.hpp.
- Returns:
- Whether or not there are any split times in the accumulator
Definition at line 290 of file timer.hpp.
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 300 of file timer.hpp.
Resets the epoch of the timer to now
Definition at line 180 of file timer.hpp.
void reset_accumulator |
( |
) |
|
Resets the split time accumulator
Definition at line 195 of file timer.hpp.
- Returns:
- The number of split times in the accumulator
Definition at line 282 of file timer.hpp.
- Returns:
- The difference of time between the epoch and now, in milliseconds
Definition at line 203 of file timer.hpp.