Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::timer Class Reference

Can repeatedly call a piece of code. More...

Classes

struct  implement
 

Public Member Functions

 timer ()
 
 timer (std::chrono::milliseconds ms)
 
 ~timer ()
 
template<typename Function >
void elapse (Function &&fn)
 
void reset ()
 
void start ()
 
bool started () const
 
void stop ()
 
void interval (std::chrono::milliseconds ms)
 
template<typename Duration = std::chrono::milliseconds>
Duration interval () const
 

Detailed Description

Can repeatedly call a piece of code.

Examples:
widget_show.cpp, and widget_show2.cpp.

Constructor & Destructor Documentation

nana::timer::timer ( )
nana::timer::timer ( std::chrono::milliseconds  ms)
explicit
nana::timer::~timer ( )

Member Function Documentation

template<typename Function >
void nana::timer::elapse ( Function &&  fn)
inline
void nana::timer::interval ( std::chrono::milliseconds  ms)
template<typename Duration = std::chrono::milliseconds>
Duration nana::timer::interval ( ) const
inline
void nana::timer::reset ( )
void nana::timer::start ( )
bool nana::timer::started ( ) const
void nana::timer::stop ( )