aboutsummaryrefslogtreecommitdiff
path: root/minctest.h
diff options
context:
space:
mode:
authorCamil Staps2015-12-04 18:52:39 +0100
committerCamil Staps2015-12-04 18:52:39 +0100
commit17e4b7758e14e15d24aa814efa0f10d631584c25 (patch)
tree82e01f9268bd86394af7941add21298c88a9d333 /minctest.h
parentFix reseting terminal colour (diff)
More timing
Time the following: - time per test - total time used - total wall time
Diffstat (limited to 'minctest.h')
-rw-r--r--minctest.h4
1 files changed, 3 insertions, 1 deletions
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;
/**