Timed Loop Management.
More...
|
|
constexpr long | fsb::kMinimumStepSizeNs = 10000 |
| | Minimum step size in nanoseconds.
|
| |
Timed Loop Management.
◆ TimingError
Timing error codes.
| Enumerator |
|---|
| SUCCESS | No error.
|
| MONOTONIC_CLOCK_FAILED | Failed to get monotonic clock time.
|
| REALTIME_CLOCK_FAILED | Failed to get realtime clock time.
|
| SLEEP_FAILED | Failed nanosleep.
|
| STEP_SIZE_BELOW_CLOCK_RESOLUTION | Step size must be specified above clock resolution.
|
| STEP_SIZE_LESS_THAN_MINIMUM | Step size must be specified greater than minimum.
|
◆ timespec_to_seconds()
| Real fsb::timespec_to_seconds |
( |
const timespec & |
ts | ) |
|
|
inline |
Convert timespec to seconds as a Real value.
- Parameters
-
| ts | The timespec structure to convert |
- Returns
- Real The time in seconds