A cross-platform functional programming language

counted Struct Reference

Rudimentary time counter. More...

#include <zbl.hpp>

List of all members.

Public Member Functions

 counted (const char *n)
 Default constructor.
 ~counted ()

Public Attributes

const char * name
 Fully qualified name of the function.
int cnt
 Cumulative time spent in this function so far.

Detailed Description

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_);

Constructor & Destructor Documentation

counted ( const char *  n) [inline, explicit]

Default constructor.

nFully qualified name of the function

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