libecs-cpp 2.1.0
Entity Component System library in C++
Loading...
Searching...
No Matches
Classes | Namespaces | Variables
Timing.hpp File Reference
#include <algorithm>
#include <chrono>
#include <cstdint>
#include <stdexcept>
#include <string>
Include dependency graph for Timing.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ecs::Timing
 A repeating schedule: says when the next update is due. More...
 

Namespaces

namespace  ecs
 

Variables

constexpr std::chrono::microseconds ecs::MAX_INTERVAL = std::chrono::hours(24 * 36525)
 The longest interval or timer length that is accepted: 100 years of 365.25 days.
 
constexpr std::chrono::microseconds ecs::DEFAULT_INTERVAL {1000000 / 30}
 The interval of a new schedule: 33 333 microseconds, about 30 updates a second.
 
constexpr uint32_t ecs::MAX_CATCHUP = 2
 Maximum number of intervals to catch up after a stall.