#include <StatsManager.h>
void omega::Stat::addSample |
( |
double |
sample | ) |
|
|
inline |
Creation method, for consistency with python API.
static Stat* omega::Stat::find |
( |
const String & |
name | ) |
|
|
static |
Additional 'creation' method used to find an existing Stat object.
Put in the Stat class for ease-of-use from python scripts.
float omega::Stat::getAvg |
( |
| ) |
|
|
inline |
const Color& omega::Stat::getColor |
( |
| ) |
|
|
inline |
float omega::Stat::getCur |
( |
| ) |
|
|
inline |
uint omega::Stat::getMask |
( |
| ) |
|
|
inline |
float omega::Stat::getMax |
( |
| ) |
|
|
inline |
float omega::Stat::getMin |
( |
| ) |
|
|
inline |
const String & omega::Stat::getName |
( |
| ) |
|
|
inline |
int omega::Stat::getNumSamples |
( |
| ) |
|
|
inline |
float omega::Stat::getTotal |
( |
| ) |
|
|
inline |
bool omega::Stat::isValid |
( |
| ) |
|
|
inline |
void omega::Stat::setColor |
( |
const Color & |
color | ) |
|
|
inline |
void omega::Stat::setMask |
( |
uint |
m | ) |
|
|
inline |
void omega::Stat::startTiming |
( |
| ) |
|
|
inline |
Starts timing this statistic. Valid only for Time type stats.
void omega::Stat::stopTiming |
( |
| ) |
|
|
inline |
Stops timing this statistic and adds a sample of the elapsed time (since startTiming was called) in milliseconds.
Valid only for Time type stats.
The documentation for this class was generated from the following file: