Zephyr API Documentation 4.0.99
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
30extern "C" {
31#endif
32
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_ */
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_TYPE__ int64_t
Definition stdint.h:75
Variables needed for system clock.