![]() |
Recast
1
Game with custom magic
|
#include <SynchronizedBlockingTimer.hpp>


Public Member Functions | |
| SynchronizedBlockingTimer (std::chrono::milliseconds minDelta) | |
| std::chrono::milliseconds | delta () const override |
| std::chrono::milliseconds | minDelta () const override |
| double | deltaFloatSeconds () const override |
| bool | isFirstUpdate () const override |
| void | update () override |
| void | wait () override |
Public Member Functions inherited from ITimer | |
| virtual | ~ITimer () noexcept=default |
Protected Attributes | |
| std::chrono::milliseconds | _minDelta |
| std::chrono::system_clock::time_point | _lastUpdateTime |
| std::mutex | _lastUpdateTimeMutex |
| bool | _isFirstUpdate |
Implementation of blocking timer.
| SynchronizedBlockingTimer::SynchronizedBlockingTimer | ( | std::chrono::milliseconds | minDelta | ) |
|
overridevirtual |
Implements ITimer.

|
overridevirtual |
Implements ITimer.

|
overridevirtual |
Implements ITimer.
|
overridevirtual |
delta. Implements ITimerBlockableMixin.
|
overridevirtual |
Saves update, saves the "tick". It will influence value of delta.
Implements ITimer.
|
overridevirtual |
Blocks until delta >= minDelta.
Implements ITimerBlockableMixin.
|
protected |
|
protected |
|
mutableprotected |
|
protected |
1.8.6