Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
scoped_print_timer Class Reference

Detailed Description

Simple scoped timer, which takes a text message and prints the duration until the scope is destroyed.

Definition at line 224 of file timer.hpp.

+ Collaboration diagram for scoped_print_timer:

#include <timer.hpp>

Public Member Functions

 scoped_print_timer (const std::string &message, const uint64_t bytes=0)
 save message and start timer More...
 ~scoped_print_timer ()
 on destruction: tell the time More...
const foxxll::timertimer () const
 constant access to enclosed timer More...

Protected Attributes

uint64_t m_bytes
 bytes processed More...
std::string m_message
 message More...
foxxll::timer m_timer
 timer More...

Constructor & Destructor Documentation

scoped_print_timer ( const std::string &  message,
const uint64_t  bytes = 0 

save message and start timer

Definition at line 238 of file timer.hpp.

References LOG1.

Member Function Documentation

const foxxll::timer& timer ( ) const

constant access to enclosed timer

Definition at line 266 of file timer.hpp.

References scoped_print_timer::m_timer.

Member Data Documentation

uint64_t m_bytes

bytes processed

Definition at line 231 of file timer.hpp.

Referenced by scoped_print_timer::~scoped_print_timer().

std::string m_message


Definition at line 228 of file timer.hpp.

Referenced by scoped_print_timer::~scoped_print_timer().

foxxll::timer m_timer


Definition at line 234 of file timer.hpp.

Referenced by scoped_print_timer::timer(), and scoped_print_timer::~scoped_print_timer().

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