Remove debugging timing output

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2023-02-26 16:52:23 +01:00
parent ae9b291082
commit 06f0e0340e
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD
2 changed files with 1 additions and 10 deletions

View File

@ -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

View File

@ -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