Inviwo 0.9.12-pre
Inviwo documentation
|
#include <timer.h>
Public Types | |
using | Milliseconds = std::chrono::milliseconds |
Public Member Functions | |
Timer (Milliseconds interval, std::function< void()> callback, TimerThread &thread=util::getDefaultTimerThread()) | |
void | start (Milliseconds interval, std::function< void()> callback) |
void | start (std::function< void()> callback) |
void | start (Milliseconds interval) |
void | start () |
void | stop () |
void | setInterval (Milliseconds interval) |
Milliseconds | getInterval () const |
void | setCallback (std::function< void()> callback) |
std::function< void()> | getCallback () const |
bool | isRunning () const |
A Timer class. Will evaluate it's callback in the front thread, with the period of interval