#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.
- Returns:
- The average of the split times in the accumulator, in milliseconds
Definition at line 248 of file timer.hpp.
- Returns:
- The largest of the split times in the accumulator, in milliseconds
Definition at line 240 of file timer.hpp.
- Returns:
- The median of the split times in the accumulator, in milliseconds
Definition at line 256 of file timer.hpp.
- Returns:
- The smallest of the split times in the accumulator, in milliseconds
Definition at line 232 of file timer.hpp.
- 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.
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.