From 17e4b7758e14e15d24aa814efa0f10d631584c25 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 4 Dec 2015 18:52:39 +0100 Subject: More timing Time the following: - time per test - total time used - total wall time --- minctest.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'minctest.h') diff --git a/minctest.h b/minctest.h index 1aaf19c..64b4519 100644 --- a/minctest.h +++ b/minctest.h @@ -26,7 +26,9 @@ 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; + struct timeval start_last_test; // Time last test was started + struct timeval created; // Time this was created + __suseconds_t used; // usecs used for tests } tester; /** -- cgit v1.2.3