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.