Thrill  0.1

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()

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

save message and start timer

Definition at line 238 of file timer.hpp.

References TLX_LOG1.

◆ ~scoped_print_timer()

~scoped_print_timer ( )
inline

on destruction: tell the time

Definition at line 247 of file timer.hpp.

References tlx::format_iec_units(), timer::seconds(), and TLX_LOG1.

Member Function Documentation

◆ timer()

const foxxll::timer& timer ( ) const
inline

constant access to enclosed timer

Definition at line 267 of file timer.hpp.

Member Data Documentation

◆ m_bytes

uint64_t m_bytes
protected

bytes processed

Definition at line 231 of file timer.hpp.

◆ m_message

std::string m_message
protected

message

Definition at line 228 of file timer.hpp.

◆ m_timer

foxxll::timer m_timer
protected

timer

Definition at line 234 of file timer.hpp.


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