#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "epicsEvent.h"
#include "epicsExit.h"
#include "epicsMutex.h"
#include "epicsThread.h"
#include "errlog.h"
#include "epicsGeneralTime.h"
#include "generalTimeSup.h"
#include "iocsh.h"
#include "osiClockTime.h"
#include "taskwd.h"
Go to the source code of this file.
#define ClockTimeSyncInterval_initial 1.0 |
#define ClockTimeSyncInterval_normal 60.0 |
#define NSEC_PER_SEC 1000000000 |
#define UNINIT_ERROR "available" |
int ClockTime_Report |
( |
int |
level | ) |
|
Definition at line 243 of file osiClockTime.c.
255 synchronized = ClockTimePvt.synchronized;
256 syncFromPriority = ClockTimePvt.syncFromPriority;
257 startTime = ClockTimePvt.startTime;
258 syncTime = ClockTimePvt.syncTime;
262 printf(
"OS Clock driver is synchronized to a priority=%d provider\n",
266 "%Y-%m-%d %H:%M:%S.%06f", &startTime);
267 printf(
"Initial sync was at %s\n", timebuf);
269 "%Y-%m-%d %H:%M:%S.%06f", &syncTime);
270 printf(
"Last successful sync was at %s\n", timebuf);
272 printf(
"Syncronization interval = %.0f seconds\n",
273 ClockTimePvt.ClockTimeSyncInterval);
276 printf(
"OS Clock driver is *not* synchronized\n");
280 "%Y-%m-%d %H:%M:%S.%06f", &ClockTimePvt.startTime);
281 printf(
"Program started at %s\n", timebuf);
282 printf(
"OS Clock synchronization thread not running.\n");
void epicsStdCall epicsMutexUnlock(epicsMutexId pmutexNode)
Release the semaphore.
LIBCOM_API size_t epicsStdCall epicsTimeToStrftime(char *pBuff, size_t bufLength, const char *pFormat, const epicsTimeStamp *pTS)
Convert epicsTimeStamp to string. See epicsTime::strftime()
#define EPICS_THREAD_ONCE_INIT
EPICS time stamp, for use from C code.
#define epicsMutexMustLock(ID)
Claim a semaphore (see epicsMutexLock()).
double ClockTimeSyncInterval |