Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
precision_time.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
3 * SPDX-FileCopyrightText: Copyright (c) 2026 Philipp Steiner
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
12
13#ifndef ZEPHYR_INCLUDE_ZEPHYR_PRECISION_TIMING_PRECISION_TIME_H_
14#define ZEPHYR_INCLUDE_ZEPHYR_PRECISION_TIMING_PRECISION_TIME_H_
15
16#include <stdint.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
29
38
41
43#define PRECISION_TIME_MAX INT64_MAX
45#define PRECISION_TIME_MIN INT64_MIN
46
59
72
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif /* ZEPHYR_INCLUDE_ZEPHYR_PRECISION_TIMING_PRECISION_TIME_H_ */
int64_t precision_time_t
Signed precision time value expressed in nanoseconds.
Definition precision_time.h:40
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.
__INT64_TYPE__ int64_t
Definition stdint.h:75