API Reference Manual  1.48.0
api/abi-default/time_types.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2015-2018 Linaro Limited
3  */
4 
5 #ifndef ODP_ABI_TIME_TYPES_H_
6 #define ODP_ABI_TIME_TYPES_H_
7 
8 #include <stdint.h>
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
18 struct odp_time_s {
20  union {
22  uint64_t u64;
23 
25  uint64_t nsec;
26 
28  uint64_t count;
29 
30  };
31 };
32 
37 typedef struct odp_time_s odp_time_t;
38 
39 #define ODP_TIME_NULL ((odp_time_t){.u64 = 0})
40 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif