Lib
QOLを高める
Public Member Functions | List of all members
yappy::debug::StopWatch Class Reference

Stop watch utility for performance measurement. More...

#include <debug.h>

Inheritance diagram for yappy::debug::StopWatch:
yappy::util::noncopyable

Public Member Functions

 StopWatch (const wchar_t *msg)
 Constructor. Starts the timer. More...
 
 ~StopWatch ()
 Destructor. Stop the timer. More...
 

Detailed Description

Stop watch utility for performance measurement.

Time is measured by QueryPerformanceCounter() API.

Definition at line 100 of file debug.h.

Constructor & Destructor Documentation

yappy::debug::StopWatch::StopWatch ( const wchar_t *  msg)
inlineexplicit

Constructor. Starts the timer.

Parameters
[in]msgString message for printing result.

Definition at line 105 of file debug.h.

yappy::debug::StopWatch::~StopWatch ( )
inline

Destructor. Stop the timer.

Result will be printed automatically.

Definition at line 113 of file debug.h.


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