commit ebc76947fa64e29f4352c0f0c9719e0917c08adc
parent 8199ab02647cbc1448183904a8c15ad0d20b3c66
Author: Alexey Yerin <yyp@disroot.org>
Date: Sat, 9 Sep 2023 15:42:00 +0300
test: Use time::SECOND
Signed-off-by: Alexey Yerin <yyp@disroot.org>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/+test.ha b/test/+test.ha
@@ -141,8 +141,8 @@ export @symbol("__test_main") fn main() size = {
if (len(ctx.failures) > 0) "91" else "37",
len(ctx.failures),
len(enabled_tests),
- ctx.total_time / 1000000000,
- ctx.total_time % 1000000000)!;
+ ctx.total_time / time::SECOND,
+ ctx.total_time % time::SECOND)!;
ignoreme(ctx.failures, enabled_tests);
return len(ctx.failures);