HyperspaceExplorer 0.7.1
Classes | Public Member Functions | Private Attributes
ScopedTimer Class Reference

A class to write timing information to a std::ostream. More...

#include <ScopedTimer.h>

Collaboration diagram for ScopedTimer:
Collaboration graph
[legend]

List of all members.

Classes

struct  Impl

Public Member Functions

 ScopedTimer (const std::string &message, std::ostream &out=std::cerr)

Private Attributes

ImplpImpl_

Detailed Description

A class to write timing information to a std::ostream.

To use a ScopedTimer, simply instantiate one in the function whose run time you want to measure. As soon as the object goes out of scope, the time it took to execute the code between the instantiation and the destruction of the ScopedTimer is printed to a std::ostream, by default std::cerr.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:18 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo