diff options
author | Camil Staps | 2015-12-04 16:40:16 +0100 |
---|---|---|
committer | Camil Staps | 2015-12-04 16:40:16 +0100 |
commit | fd0c013f914f47b040d937c293fccac5e5224208 (patch) | |
tree | c2764c571160f9a27605eb00e9442f44a0704e8c /minctest.h | |
parent | Include guard (diff) |
Timing
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 |