Zen
A cross-platform functional programming language

counter Struct Reference

Rudimentary function timer. More...

#include <zbl.hpp>

List of all members.

Public Member Functions

 counter (counted &fn)
 Default constructor.
 ~counter ()
 Destructor.

Public Attributes

QTime tmr
 The timer.
counted_fn
 The counter.

Detailed Description

Rudimentary function timer.

Counts the time spent in a function.

See also:
counted

Constructor & Destructor Documentation

counter ( counted fn) [inline, explicit]

Default constructor.

Starts the timer

Parameters:
fnFunction counter
~counter ( ) [inline]

Destructor.

Stops the timer and adds time spent to the accumulator.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines