2021-09-08 18:55:17 +00:00
|
|
|
/* This header defines a struct for storing function timing information. */
|
|
|
|
#ifndef TIME_FUNCTION_H
|
|
|
|
#define TIME_FUNCTION_H
|
2021-09-30 19:01:57 +00:00
|
|
|
#include <time.h>
|
2021-09-08 18:55:17 +00:00
|
|
|
|
|
|
|
/* Struct used to store the results. */
|
|
|
|
typedef struct function_run_time {
|
|
|
|
/* Function name. */
|
|
|
|
char *name;
|
|
|
|
/* Length of run time. */
|
2021-09-30 19:01:57 +00:00
|
|
|
clock_t time;
|
2021-09-08 18:55:17 +00:00
|
|
|
} function_run_time;
|
|
|
|
#endif /* TIME_FUNCTION_H */
|