PeriodicTracer

PeriodicTracer struct.

Members

Functions

format
typeof(&this) format(cstring fmt, Args args)

Outputs a formatted string to the console if the update interval has passed. The display is either static or adds a newline depending on the this.static_display member.

format
typeof(&this) format(ulong interval, cstring fmt, Args args)

Outputs a formatted string to the console if the specified update interval has passed. The display is either static or adds a newline depending on the this.static_display member.

timeToUpdate
bool timeToUpdate()

Checks if it's time to update the display.

Static variables

timer
StopWatch timer;

Timer, shared by all instances of this struct (there's only one time!)

Variables

interval
ulong interval;

Minimum time between updates (microsec)

static_display
bool static_display;

Toggles between static display (true) and line-by-line display (false)

Meta