CUV  0.9.201304091348
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
Timing Class Reference

Simple class to perfom timing measurements. More...

#include <timing.hpp>

Public Member Functions

 Timing ()
 Creates a new Timing instance.
double diff () const
 Returns the time difference between start and end.
double perf ()
 Computes the performance measured by the Timing instance.
int count () const
 Returns the current value of the counter.
void update (int inc=1)
 Updates the end time of the Timing instance and increments the counter.
void reset ()
 Initializes the Timing instance.

Detailed Description

Simple class to perfom timing measurements.

The class allows to compute timing information with microsecond (10^-6s) resolution. If required the performance can also be tracked by this class by calling the perf() method instead of the diff() method. If the counter and timing values should be reset the reset() method needs to be called explicitely.

Definition at line 53 of file timing.hpp.


The documentation for this class was generated from the following file: