struct CCL::Profiler::TimeAccumulator

#include <profiler.h>

struct TimeAccumulator: public CCL::Profiler::Primitive
{
    // fields

    double elapsed;
    double variance;
    double start;
    int iterations;
    bool verbose;

    // construction

    TimeAccumulator (const char* name = nullptr, bool verbose = true);

    // methods

    void begin ();
    void end ();
    double getStdDev () const;
    double getAverage () const;
    void reset ();
    void print ();
};

Inherited Members

public:
    // fields

    const char* name;

    // methods

    const char* getName () const;