Inviwo  0.9.10.1
Inviwo documentation
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 ()
 
void start (Milliseconds interval)
 
void stop ()
 
void setInterval (Milliseconds interval)
 
void setCallback (std::function< void()> callback)
 
Milliseconds getInterval () 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 files: