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 #include <stdint.h>
16 #include <metal/sys.h>
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 /** \defgroup time TIME Interfaces
23  *  @{
24  */
25 
26 /**
27  * @brief      get timestamp
28  *             This function returns the timestampe as unsigned long long
29  *             value.
30  *
31  * @return     timestamp
32  */
33 unsigned long long metal_get_timestamp(void);
34 
35 /** @} */
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif /* __METAL_TIME__H__ */
42 
43