|  | Inviwo
    0.9.10.1
    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 () | 
| void | start (Milliseconds interval) | 
| void | stop () | 
| void | setInterval (Milliseconds interval) | 
| void | setCallback (std::function< void()> callback) | 
| Milliseconds | getInterval () const | 
| bool | isRunning () const | 
A Timer class. Will evaluate it's callback in the front thread, with the period of interval