CMS 3D CMS Logo

Macros | Functions
RFIOFile.cc File Reference
#include "Utilities/RFIOAdaptor/interface/RFIOFile.h"
#include "Utilities/RFIOAdaptor/interface/RFIO.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/Utilities/interface/EDMException.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <cerrno>
#include <unistd.h>
#include <stdint.h>
#include <time.h>
#include <sys/time.h>
#include <cstring>
#include <vector>

Go to the source code of this file.

Macros

#define __STDC_LIMIT_MACROS   1
 

Functions

static double realNanoSecs (void)
 

Macro Definition Documentation

#define __STDC_LIMIT_MACROS   1

Definition at line 1 of file RFIOFile.cc.

Function Documentation

static double realNanoSecs ( void  )
static

Definition at line 16 of file RFIOFile.cc.

References CLOCK_REALTIME.

Referenced by RFIOFile::read().

17 {
18 #if _POSIX_TIMERS > 0
19  struct timespec tm;
20  if (clock_gettime(CLOCK_REALTIME, &tm) == 0)
21  return tm.tv_sec * 1e9 + tm.tv_nsec;
22 #else
23  struct timeval tm;
24  if (gettimeofday(&tm, 0) == 0)
25  return tm.tv_sec * 1e9 + tm.tv_usec * 1e3;
26 #endif
27  return 0;
28 }
#define CLOCK_REALTIME
Definition: TimerService.h:32