lib60870-C  2.3.2
C source code library for the IEC 60870-5-101/104 protocols
hal_time.h
Go to the documentation of this file.
1 /*
2  * time.c
3  *
4  * Copyright 2013-2021 Michael Zillgith
5  *
6  * This file is part of Platform Abstraction Layer (libpal)
7  * for libiec61850, libmms, and lib60870.
8  */
9 
10 #ifndef HAL_C_
11 #define HAL_C_
12 
13 #include "hal_base.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
35 typedef uint64_t nsSinceEpoch;
36 typedef uint64_t msSinceEpoch;
37 
46 PAL_API msSinceEpoch
48 
57 PAL_API nsSinceEpoch
59 
68 PAL_API bool
69 Hal_setTimeInNs(nsSinceEpoch nsTime);
70 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 
80 #endif /* HAL_C_ */
PAL_API msSinceEpoch Hal_getTimeInMs(void)
PAL_API bool Hal_setTimeInNs(nsSinceEpoch nsTime)
PAL_API nsSinceEpoch Hal_getTimeInNs(void)