-
Notifications
You must be signed in to change notification settings - Fork 26
Stat
Alessandro Febretti edited this page Feb 8, 2014
·
2 revisions
Last revision: ver. 5.1 - 11 November 2013
module omega wraps omega::Stat
Method(s) | Description |
---|---|
static Stat create(string name, StatType type)
|
creates a new statistic counter |
static Stat find(string name)
|
Finds an existing statistic counter. For example, do fps = Stat.find('fps') to get the system FPS counter |
float getCur() , float getMin() , float getMax() , float getAvg()
|
|
startTiming() , stopTiming()
|
|
addSample(float sample) |
The StatType
enumeration lists the possible stat types supported by omegalib:
StatType.Time
StatType.Memory
StatType.Primitive