![]() |
ccsoft
0.0.0
Convolutional codes library with soft decision decoding
|
#include <time.h>
Go to the source code of this file.
Defines | |
#define | DEBUG_OUT(condition, str) |
Functions | |
double | debug_get_time_difference (const timespec &time1, const timespec &time2) |
#define DEBUG_OUT | ( | condition, | |
str | |||
) |
double debug_get_time_difference | ( | const timespec & | time1, |
const timespec & | time2 | ||
) |
{ long long unsigned int time1_ns = time1.tv_sec * 1000000000ull + time1.tv_nsec; long long unsigned int time2_ns = time2.tv_sec * 1000000000ull + time2.tv_nsec; if (time1_ns > time2_ns) { return ((double) time1_ns - time2_ns) / 1e9; } else { return ((double) time2_ns - time1_ns) / 1e9; } }