1 #ifndef GADGET_WALLTIME_H
2 #define GADGET_WALLTIME_H
6 #define WALLTIME_IGNORE "."
7 #define LINENO(a, b) a ":" # b
8 #define walltime_measure(name) walltime_measure_full(name, __FILE__ , __LINE__)
9 #define walltime_add(name, dt) walltime_add_full(name, dt, __FILE__, __LINE__)
29 #define walltime_step_min(id) walltime_get(id, CLOCK_STEP_MIN)
30 #define walltime_step_max(id) walltime_get(id, CLOCK_STEP_MAX)
31 #define walltime_step_mean(id) walltime_get(id, CLOCK_STEP_MEAN)
32 #define walltime_accu_min(id) walltime_get(id, CLOCK_ACCU_MIN)
33 #define walltime_accu_max(id) walltime_get(id, CLOCK_ACCU_MAX)
34 #define walltime_accu_mean(id) walltime_get(id, CLOCK_ACCU_MEAN)
void walltime_reset(void)
int walltime_clock(const char *name)
void walltime_init(struct ClockTable *table)
double walltime_measure_internal(const char *name)
double walltime_add_full(const char *name, const double dt, const char *file, const int line)
double walltime_measure_full(const char *name, const char *file, const int line)
double walltime_get_time(const char *name)
double walltime_get(const char *name, const enum clocktype type)
void walltime_summary(const int root, MPI_Comm comm)
double walltime_add_internal(const char *name, const double dt)
char walltime_get_symbol(const char *name)
void walltime_report(FILE *fd, const int root, MPI_Comm comm)