Zen
A cross-platform functional programming language
|
Rudimentary time counter. More...
#include <zbl.hpp>
Public Member Functions | |
counted (const char *n) | |
Default constructor. | |
~counted () | |
Destructor. | |
Public Attributes | |
const char * | name |
Fully qualified name of the function. | |
int | cnt |
Cumulative time spent in this function so far. |
Rudimentary time counter.
Maintains a system-wide static counter instance Usage: Put this at the entry of any function
static zd::counted _fn_("myfunc"); zd::counter ctr(_fn_);
counted | ( | const char * | n | ) | [inline, explicit] |
Default constructor.
n | Fully qualified name of the function |