This is Unofficial EPICS BASE Doxygen Site
epicsGeneralTime.h
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2008 UChicago Argonne LLC, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2008 Diamond Light Source Ltd
5 * Copyright (c) 2004 Oak Ridge National Laboratory
6 * EPICS BASE is distributed subject to a Software License Agreement found
7 * in file LICENSE that is included with this distribution.
8 \*************************************************************************/
9 
36 #ifndef INC_epicsGeneralTime_H
37 #define INC_epicsGeneralTime_H
38 
39 #include "libComAPI.h"
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
56 #define NUM_TIME_EVENTS 256
57 
63 LIBCOM_API void generalTime_Init(void);
64 
72 LIBCOM_API int installLastResortEventProvider(void);
73 
84 LIBCOM_API void generalTimeResetErrorCounts(void);
85 
98 LIBCOM_API int generalTimeGetErrorCounts(void);
99 
111 LIBCOM_API const char * generalTimeCurrentProviderName(void);
112 
124 LIBCOM_API const char * generalTimeEventProviderName(void);
125 
137 LIBCOM_API const char * generalTimeHighestCurrentName(void);
138 
140 #define generalTimeCurrentTpName generalTimeCurrentProviderName
141 
142 #define generalTimeEventTpName generalTimeEventProviderName
143 
148 LIBCOM_API long generalTimeReport(int interest);
149 
150 #ifdef __cplusplus
151 }
152 #endif
153 
154 #endif /* INC_epicsGeneralTime_H */
LIBCOM_API const char * generalTimeEventProviderName(void)
Return the name of the provider that last returned a valid Time Event time, or NULL of none...
LIBCOM_API const char * generalTimeHighestCurrentName(void)
Return the name of the registered current time provider that has the highest priority.
LIBCOM_API void generalTime_Init(void)
Initialise the framework.
LIBCOM_API int installLastResortEventProvider(void)
Install a Time Event time provider that returns the current time for any Time event number...
LIBCOM_API int generalTimeGetErrorCounts(void)
Return the internal counter of the number of times the time returned was earlier than when previously...
LIBCOM_API long generalTimeReport(int interest)
Provide information about the installed providers and their current best times.
LIBCOM_API const char * generalTimeCurrentProviderName(void)
Return the nume of the provider that last returned a valid current time, or NULL if none...
LIBCOM_API void generalTimeResetErrorCounts(void)
Reset the internal counter of the number of times the time returned was earlier than when previously ...