The Battle for Wesnoth  1.19.5+dev
Classes | Namespaces | Typedefs | Functions
optimer.hpp File Reference
#include <chrono>
#include <functional>
#include <iosfwd>
#include <utility>
Include dependency graph for optimer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  utils::optimer< ResolutionType, ClockType >
 Reports time elapsed at the end of an object scope. More...
 

Namespaces

 utils
 

Typedefs

using utils::ms_optimer = optimer< std::chrono::milliseconds >
 Time elapsed with millisecond resolution. More...
 

Functions

template<typename... OpTimerArgs>
std::ostream & utils::operator<< (std::ostream &o, const optimer< OpTimerArgs... > &tm)
 Formats time elapsed for writing to a stream. More...