diff options
Diffstat (limited to 'minctest.h')
-rw-r--r-- | minctest.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -20,11 +20,13 @@ #include <inttypes.h> #include <stdbool.h> +#include <sys/time.h> typedef struct { uint16_t passed; // Number of passed tests uint16_t failed; // Number of failed tests bool show_pass; // Whether or not to print a message when a test passes + struct timeval start_last_test; } tester; /** @@ -67,6 +69,11 @@ void test_destroy(tester*); void test_exit(tester*); /** + * Start the timer for a test + */ +void test_start_timer(tester*); + +/** * Test for truth on a bool * * Outputs a red message for failure, and a green one for passing if |