time.eventcounter - ICE 0.1 API documentation

ICE 0.1 API documentation

# time.eventcounter

Struct counting occurences of an event over time.

struct EventCounter;

  Generalization of an FPS counter - counts how many times an event happens

  Signal:
  public mixin Signal!(real) update
  Emitted when a period ends - passes events per second.

  this(const(real) period);

    Construct an EventCounter.

    Parameters:

    const(real) period | Update period.

  void event();

    Count one event.

  const pure @property uint events();

    Get number of events counted so far.

  const @property string statistics();

    Return a string containing statistics about events counted.

Copyright © Ferdinand Majerech 2011. | Page generated by AutoDDoc and Ddoc.