diff options
author | Camil Staps | 2015-12-04 18:52:39 +0100 |
---|---|---|
committer | Camil Staps | 2015-12-04 18:52:39 +0100 |
commit | 17e4b7758e14e15d24aa814efa0f10d631584c25 (patch) | |
tree | 82e01f9268bd86394af7941add21298c88a9d333 /minctest.h | |
parent | Fix 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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; /** |