Skip to content
Alessandro Febretti edited this page Feb 8, 2014 · 2 revisions

Last revision: ver. 5.1 - 11 November 2013

module omega wraps omega::Stat

Methods

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)

StatType

The StatType enumeration lists the possible stat types supported by omegalib:

  • StatType.Time
  • StatType.Memory
  • StatType.Primitive
Clone this wiki locally