The Battle for Wesnoth  1.17.0-dev
Classes | Namespaces | Typedefs | Functions
optimer.hpp File Reference
#include <chrono>
#include <functional>
#include <iosfwd>
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  util::optimer< ResolutionType, ClockType >
 Reports time elapsed at the end of an object scope. More...
 

Namespaces

 util
 

Typedefs

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

Functions

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