Remove debugging timing output
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
ae9b291082
commit
06f0e0340e
|
@ -233,7 +233,7 @@ bool gravityDB_open(void)
|
|||
}
|
||||
|
||||
// Check if there are any ABP-style entries in the database
|
||||
CHECK_TIME(gravity_check_ABP_format());
|
||||
gravity_check_ABP_format();
|
||||
if(gravity_abp_format)
|
||||
{
|
||||
// ABP-style entries are present in the database
|
||||
|
|
|
@ -27,13 +27,4 @@ void timer_start(const enum timers i);
|
|||
double timer_elapsed_msec(const enum timers i);
|
||||
void sleepms(const int milliseconds);
|
||||
|
||||
#define CHECK_TIME(x) {\
|
||||
struct timespec start,end;\
|
||||
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &start);\
|
||||
x;\
|
||||
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &end);\
|
||||
double f = ((double)end.tv_sec*1e9 + end.tv_nsec) - ((double)start.tv_sec*1e9 + start.tv_nsec); \
|
||||
logg("TIMED %s: %f ms\n", xstr(x), 1e-6*f); \
|
||||
}
|
||||
|
||||
#endif //TIMERS_H
|
||||
|
|
Loading…
Reference in New Issue