This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofTimer Class Reference
#include <ofTimer.h>
Public Member Functions | |
ofTimer () | |
Constructs the default ofTimer(). | |
void | reset () |
Reset the starting instant of the periodic event to now. | |
void | setPeriodicEvent (uint64_t nanoseconds) |
Sets the frequency in nanoseconds that events happen. | |
void | waitNext () |
Sleep this thread until the next periodic event. | |
Constructor & Destructor Documentation
◆ ofTimer()
ofTimer::ofTimer | ( | ) |
Constructs the default ofTimer().
Member Function Documentation
◆ reset()
void ofTimer::reset | ( | ) |
Reset the starting instant of the periodic event to now.
◆ setPeriodicEvent()
void ofTimer::setPeriodicEvent | ( | uint64_t | nanoseconds | ) |
Sets the frequency in nanoseconds
that events happen.
The timer will begin calculating the events beginning the moment the function is called.
- Parameters
-
nanoseconds The number of nanoseconds between events.
◆ waitNext()
void ofTimer::waitNext | ( | ) |
Sleep this thread until the next periodic event.
The documentation for this class was generated from the following files:
- /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/utils/ofTimer.h
- /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/utils/ofTimer.cpp