Nymph  v1.5.2
Flow-Based Data Processing Framework
Macros | Functions | Variables
KTTime.hh File Reference
#include <inttypes.h>
#include <sys/time.h>
#include <time.h>
Include dependency graph for KTTime.hh:

Go to the source code of this file.

Macros

#define NSEC_PER_SEC   1000000000
 
#define SEC_PER_NSEC   1.e-9
 

Functions

int GetTimeMonotonic (struct timespec *time)
 
int GetTimeCurrent (struct timespec *time)
 
uint64_t TimeToNSec (struct timespec time)
 
double TimeToSec (struct timespec time)
 
void TimeDiff (struct timespec start, struct timespec end, struct timespec *diff)
 
size_t GetTimeAbsoluteStr (char *ptr)
 

Variables

char eDateTimeFormat []
 

Macro Definition Documentation

◆ NSEC_PER_SEC

#define NSEC_PER_SEC   1000000000

Definition at line 18 of file KTTime.hh.

◆ SEC_PER_NSEC

#define SEC_PER_NSEC   1.e-9

Definition at line 22 of file KTTime.hh.

Function Documentation

◆ GetTimeAbsoluteStr()

size_t GetTimeAbsoluteStr ( char *  ptr)

Definition at line 85 of file KTTime.cc.

◆ GetTimeCurrent()

int GetTimeCurrent ( struct timespec *  time)

Definition at line 39 of file KTTime.cc.

◆ GetTimeMonotonic()

int GetTimeMonotonic ( struct timespec *  time)

Definition at line 19 of file KTTime.cc.

◆ TimeDiff()

void TimeDiff ( struct timespec  start,
struct timespec  end,
struct timespec *  diff 
)

Definition at line 70 of file KTTime.cc.

◆ TimeToNSec()

uint64_t TimeToNSec ( struct timespec  time)

Definition at line 60 of file KTTime.cc.

◆ TimeToSec()

double TimeToSec ( struct timespec  time)

Definition at line 65 of file KTTime.cc.

Variable Documentation

◆ eDateTimeFormat

char eDateTimeFormat[]

Definition at line 12 of file KTTime.cc.