Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
precision_time.h File Reference

Signed precision time arithmetic. More...

#include <stdint.h>

Go to the source code of this file.

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.

Detailed Description

Signed precision time arithmetic.