|
| Timer (const Timer &)=delete |
|
| Timer (Timer &&t) |
|
Timer & | set_interval (Uint32 interval) |
|
Timer & | start () |
|
Timer & | stop () |
|
template<class Callable , class ... Args> |
Timer & | set_callback (Callable &&callable, Args &&...args) |
|
bool | running () const |
| Check the timer is running. More...
|
|
Uint32 | interval () const |
| Get the timer's interval. More...
|
|
Timer & | set_interval (std::chrono::milliseconds ms) |
|
|
static Uint32 | current () |
| Get current global timer ticks from SDL. More...
|
|
◆ 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:
- include/Btk/utils/timer.hpp
- src/utils/timer.cpp