|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
Precision Time. More...
Macros | |
| #define | PRECISION_TIME_MAX INT64_MAX |
| Maximum representable precision time value. | |
| #define | PRECISION_TIME_MIN INT64_MIN |
| Minimum representable precision time value. | |
Typedefs | |
| typedef int64_t | precision_time_t |
| Signed precision time value expressed in nanoseconds. | |
Functions | |
| int | precision_time_add (precision_time_t a, precision_time_t b, precision_time_t *result) |
| Add two precision time values with overflow checking. | |
| int | precision_time_sub (precision_time_t a, precision_time_t b, precision_time_t *result) |
| Subtract two precision time values with overflow checking. | |
Precision Time.
| #define PRECISION_TIME_MAX INT64_MAX |
#include <precision_time.h>
Maximum representable precision time value.
| #define PRECISION_TIME_MIN INT64_MIN |
#include <precision_time.h>
Minimum representable precision time value.
| typedef int64_t precision_time_t |
#include <precision_time.h>
Signed precision time value expressed in nanoseconds.
| int precision_time_add | ( | precision_time_t | a, |
| precision_time_t | b, | ||
| precision_time_t * | result ) |
#include <precision_time.h>
Add two precision time values with overflow checking.
| a | First operand in nanoseconds. |
| b | Second operand in nanoseconds. |
| result | Destination for the sum. |
| 0 | on success. |
| -EINVAL | if result is null. |
| -ERANGE | if the sum is not representable. |
| int precision_time_sub | ( | precision_time_t | a, |
| precision_time_t | b, | ||
| precision_time_t * | result ) |
#include <precision_time.h>
Subtract two precision time values with overflow checking.
| a | Minuend in nanoseconds. |
| b | Subtrahend in nanoseconds. |
| result | Destination for the difference. |
| 0 | on success. |
| -EINVAL | if result is null. |
| -ERANGE | if the difference is not representable. |