The TimeSync class.
More...
#include <b0/utils/time_sync.h>
The TimeSync class.
Handles the time synchronization aspects of the Node class.
◆ TimeSync()
b0::TimeSync::TimeSync |
( |
double |
max_slope = 0.5 | ) |
|
TimeSync constructor.
- Parameters
-
max_slope | Indicates the maximum correction speed (in adjusted seconds per real second). Always keep this strictly greater than 0 and strictly less than 1. |
◆ constantRateAdjustedOffset()
virtual int64_t b0::TimeSync::constantRateAdjustedOffset |
( |
| ) |
|
|
virtual |
Compute a smoothed offset with a linear velocity profile with a slope never greater (in absolute value) than max_slope
◆ updateTime()
virtual void b0::TimeSync::updateTime |
( |
int64_t |
remoteTime | ) |
|
|
virtual |
Update the time offset with a time from remote server (in microseconds)
The documentation for this class was generated from the following file: