1 /*
2  * Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 /*
8  * @file	time.h
9  * @brief	Time primitives for libmetal.
10  */
11 
12 #ifndef __METAL_TIME__H__
13 #define __METAL_TIME__H__
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 /** \defgroup time TIME Interfaces
20  *  @{ */
21 
22 #include <stdint.h>
23 #include <metal/sys.h>
24 
25 /**
26  * @brief      get timestamp
27  *             This function returns the timestampe as unsigned long long
28  *             value.
29  *
30  * @return     timestamp
31  */
32 unsigned long long metal_get_timestamp(void);
33 
34 /** @} */
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif /* __METAL_TIME__H__ */
41 
42