bbunit: fix WANT_TIMING compilation
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
eff58f15b0
commit
2835a224cd
@ -77,7 +77,7 @@ int unit_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
|
|||||||
#if WANT_TIMING
|
#if WANT_TIMING
|
||||||
gettimeofday(&end, NULL);
|
gettimeofday(&end, NULL);
|
||||||
timeval_diff(&time_spent, &end, &begin);
|
timeval_diff(&time_spent, &end, &begin);
|
||||||
bb_error_msg("Elapsed time %u.%06u seconds"
|
bb_error_msg("Elapsed time %u.%06u seconds",
|
||||||
(int)time_spent.tv_sec,
|
(int)time_spent.tv_sec,
|
||||||
(int)time_spent.tv_usec);
|
(int)time_spent.tv_usec);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user