faunus
Public Member Functions | List of all members
Faunus::Stopwatch Class Reference

Simple struct to measure duration of code. More...

#include <timers.h>

Public Member Functions

void start ()
 
void stop ()
 

Detailed Description

Simple struct to measure duration of code.

Example:

Stopwatch w;
w.start();
// do something expensive...
w.stop(); // --> stdio

stop() takes an optional template parameter to specify the time resolution. Default is milliseconds.


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