Btk
Btk::Timer Class Reference

Public Member Functions

 Timer (const Timer &)=delete
 
 Timer (Timer &&t)
 
Timerset_interval (Uint32 interval)
 
Timerstart ()
 
Timerstop ()
 
template<class Callable , class ... Args>
Timerset_callback (Callable &&callable, Args &&...args)
 
bool running () const
 Check the timer is running. More...
 
Uint32 interval () const
 Get the timer's interval. More...
 
Timerset_interval (std::chrono::milliseconds ms)
 

Static Public Member Functions

static Uint32 current ()
 Get current global timer ticks from SDL. More...
 

Member Function Documentation

◆ current()

Uint32 Btk::Timer::current ( )
static

Get current global timer ticks from SDL.

Returns
Uint32

◆ interval()

Uint32 Btk::Timer::interval ( ) const

Get the timer's interval.

Returns
The interval

◆ running()

bool Btk::Timer::running ( ) const

Check the timer is running.

Returns
true
false

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