ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcbSchedClock.c File Reference
#include <ngc/core/ngcbSched.h>
#include <poll.h>

Macros

#define _GNU_SOURCE
 
#define _REENTRANT
 

Functions

void ngcbClockInit (void)
 
void ngcbClockGetAbs (ngcb_time_hr *t)
 
void ngcbClockGet (ngcb_time_hr *t)
 
double ngcbTimeStamp ()
 
uint64_t ngcbTimeStamp64 ()
 
int _ngcbClockWait (int fd, int waitTime)
 

Detailed Description

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

◆ _REENTRANT

#define _REENTRANT

Function Documentation

◆ _ngcbClockWait()

int _ngcbClockWait ( int fd,
int waitTime )

Suspend process execution for waitTime microseconds. The sleep can be interrupted by writing to the file descriptor fd which will be closed in that case. If fd has a negative value then the sleep cannot be interrupted.

◆ ngcbClockGet()

void ngcbClockGet ( ngcb_time_hr * t)

Read a high resolution timestamp from the most stable available clock. To be used to measure time differences.

◆ ngcbClockGetAbs()

void ngcbClockGetAbs ( ngcb_time_hr * t)

Read a high resolution absolute timestamp representing the seconds since UNIX epoch. The functuion uses the most precise available clock.

◆ ngcbClockInit()

void ngcbClockInit ( void )

Select and initialize the high resolution clock.

◆ ngcbTimeStamp()

double ngcbTimeStamp ( )

Read a high-resolution timestamp and return a double precision floating point value representing the seconds since UNIX epoch.

◆ ngcbTimeStamp64()

uint64_t ngcbTimeStamp64 ( )

Read a high-resolution timestamp and return a double precision floating point value representing the seconds since UNIX epoch. The value is stored in 64-bit data field.