rtmlib
Macros
debug_compat.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEBUG   0
 
#define DEBUGV(...)
 
#define DEBUGV3(...)
 
#define DEBUGV_ERROR(...)
 
#define DEBUGV3_APPEND(...)
 
#define START_MEASURE()
 
#define COUNT_CYCLE()   cycle_count++;
 
#define STOP_MEASURE()
 

Macro Definition Documentation

◆ COUNT_CYCLE

#define COUNT_CYCLE ( )    cycle_count++;

◆ DEBUG

#define DEBUG   0

◆ DEBUGV

#define DEBUGV (   ...)

◆ DEBUGV3

#define DEBUGV3 (   ...)

◆ DEBUGV3_APPEND

#define DEBUGV3_APPEND (   ...)

◆ DEBUGV_ERROR

#define DEBUGV_ERROR (   ...)

◆ START_MEASURE

#define START_MEASURE ( )
Value:
uint64_t start, stop; \
volatile int cycle_count = 0; \
start = clockgettime(); \

◆ STOP_MEASURE

#define STOP_MEASURE ( )
Value:
stop = clockgettime(); \
DEBUGV("DURATION_TIME:%llu:%u\n", stop - start, cycle_count);