15 #include <chfPlugin.h>    17 #include <db_field_log.h>    20 static db_field_log* filter(
void* pvt, dbChannel *chan, db_field_log *pfl) {
    25     if (pfl->type == dbfl_type_rec) {
    26         dbScanLock(dbChannelRecord(chan));
    27         dbChannelMakeArrayCopy(pvt, pfl, chan);
    28         dbScanUnlock(dbChannelRecord(chan));
    35 static void channelRegisterPre(dbChannel *chan, 
void *pvt,
    36                                chPostEventFunc **cb_out, 
void **arg_out, db_field_log *probe)
    41 static void channel_report(dbChannel *chan, 
void *pvt, 
int level, 
const unsigned short indent)
    43     printf(
"%*sTimestamp (ts)\n", indent, 
"");
    46 static chfPluginIf pif = {
    60 static void tsInitialize(
void)
    62     chfPluginRegister(
"ts", &pif, NULL);
 epicsExportRegistrar(tsInitialize)
int epicsStdCall epicsTimeGetCurrent(epicsTimeStamp *pDest)
Get current time into *pDest. 
EPICS time stamp, for use from C code.