Files
epics-base/src/libCom/os/generic/osdTime.cc

25 lines
367 B
C++

//
// should move the time stuff into a different header
//
#include <osiSock.h>
#define epicsExportSharedSymbols
#include "osiTime.h"
//
// osiTime::getCurrent ()
//
osiTime osiTime::getCurrent ()
{
int status;
struct timeval tv;
status = gettimeofday (&tv, NULL);
assert (status==0);
return osiTime(tv.tv_sec, tv.tv_usec * nSecPerUSec);
}