From fd0c013f914f47b040d937c293fccac5e5224208 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 4 Dec 2015 16:40:16 +0100 Subject: Timing --- minctest.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'minctest.h') diff --git a/minctest.h b/minctest.h index 0438c9c..1aaf19c 100644 --- a/minctest.h +++ b/minctest.h @@ -20,11 +20,13 @@ #include #include +#include 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; /** @@ -66,6 +68,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 * -- cgit v1.2.3