lib60870-C
2.3.2
C source code library for the IEC 60870-5-101/104 protocols
src
hal
inc
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
47
Hal_getTimeInMs
(
void
);
48
57
PAL_API nsSinceEpoch
58
Hal_getTimeInNs
(
void
);
59
68
PAL_API
bool
69
Hal_setTimeInNs
(nsSinceEpoch nsTime);
70
75
#ifdef __cplusplus
76
}
77
#endif
78
79
80
#endif
/* HAL_C_ */
Hal_getTimeInMs
PAL_API msSinceEpoch Hal_getTimeInMs(void)
Hal_setTimeInNs
PAL_API bool Hal_setTimeInNs(nsSinceEpoch nsTime)
Hal_getTimeInNs
PAL_API nsSinceEpoch Hal_getTimeInNs(void)
Generated by
1.9.1