aboutsummaryrefslogtreecommitdiff
path: root/minctest.h
diff options
context:
space:
mode:
Diffstat (limited to 'minctest.h')
-rw-r--r--minctest.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/minctest.h b/minctest.h
index 0438c9c..1aaf19c 100644
--- a/minctest.h
+++ b/minctest.h
@@ -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