Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::Timer Class Reference

#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
 

Detailed Description

A Timer class. Will evaluate it's callback in the front thread, with the period of interval


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