Zephyr API
4.5.99
A Scalable Open Source RTOS
Toggle main menu visibility
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
19
extern
"C"
{
20
#endif
21
29
38
40
typedef
int64_t
precision_time_t
;
41
43
#define PRECISION_TIME_MAX INT64_MAX
45
#define PRECISION_TIME_MIN INT64_MIN
46
58
int
precision_time_add
(
precision_time_t
a,
precision_time_t
b,
precision_time_t
*result);
59
71
int
precision_time_sub
(
precision_time_t
a,
precision_time_t
b,
precision_time_t
*result);
72
74
75
#ifdef __cplusplus
76
}
77
#endif
78
79
#endif
/* ZEPHYR_INCLUDE_ZEPHYR_PRECISION_TIMING_PRECISION_TIME_H_ */
precision_time_t
int64_t precision_time_t
Signed precision time value expressed in nanoseconds.
Definition
precision_time.h:40
precision_time_add
int precision_time_add(precision_time_t a, precision_time_t b, precision_time_t *result)
Add two precision time values with overflow checking.
precision_time_sub
int precision_time_sub(precision_time_t a, precision_time_t b, precision_time_t *result)
Subtract two precision time values with overflow checking.
stdint.h
int64_t
__INT64_TYPE__ int64_t
Definition
stdint.h:75
zephyr
precision_timing
precision_time.h
Generated on
for Zephyr API by
1.17.0