Zephyr API Documentation
4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
net_time.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023 Zephyr Project
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
23
#ifndef ZEPHYR_INCLUDE_NET_NET_TIME_H_
24
#define ZEPHYR_INCLUDE_NET_NET_TIME_H_
25
26
/* Include required for NSEC_PER_* constants. */
27
#include <
zephyr/sys_clock.h
>
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
103
typedef
int64_t
net_time_t
;
104
106
#define NET_TIME_MAX INT64_MAX
107
109
#define NET_TIME_MIN INT64_MIN
110
112
#define NET_TIME_SEC_MAX (NET_TIME_MAX / NSEC_PER_SEC)
113
115
#define NET_TIME_SEC_MIN (NET_TIME_MIN / NSEC_PER_SEC)
116
117
#ifdef __cplusplus
118
}
119
#endif
120
125
#endif
/* ZEPHYR_INCLUDE_NET_NET_TIME_H_ */
net_time_t
int64_t net_time_t
Any occurrence of net_time_t specifies a concept of nanosecond resolution scalar time span,...
Definition
net_time.h:103
int64_t
__INT64_TYPE__ int64_t
Definition
stdint.h:75
sys_clock.h
Variables needed for system clock.
zephyr
net
net_time.h
Generated on Sat Nov 9 2024 00:03:13 for Zephyr API Documentation by
1.12.0