Catchea
Topographic Data Browser
utils.h
Go to the documentation of this file.
1 
7 #ifndef CATCHEA_UTILS_H
8 #define CATCHEA_UTILS_H
9 
10 #include <libgen.h>
11 
16 double get_time();
17 
18 #define START_BENCH(name) double bench_start_##name = get_time();
19 #define STOP_BENCH(name) double bench_stop_##name = get_time();
20 #define GET_BENCH(name) (bench_stop_##name - bench_start_##name)
21 
27 char* util_basename(char* path);
28 
29 #endif //CATCHEA_UTILS_H
char * util_basename(char *path)
Definition: utils.cpp:35
double get_time()
Definition: utils.cpp:25