diff options
author | davidovski <david@davidovski.xyz> | 2023-12-28 14:03:30 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-12-28 14:03:30 +0000 |
commit | 1eb30f205f776ad812fd6c6c8d81dd666531b8dc (patch) | |
tree | 89264f3c1a6e167de5acaa85c8a1a27f41d140f3 /typr.sh | |
parent | 55da2672077e95cfef581901676f5805b6a46205 (diff) |
use reverse timer on timed tests
Diffstat (limited to 'typr.sh')
-rwxr-xr-x | typr.sh | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -62,6 +62,10 @@ typr_draw_time () { case "$test_type" in "time") time_ns=$((1000000000*$test_length - $time_ns)) + [ "$time_ns" -lt "0" ] && { + [ "$(((time_ns / 500000000) % 2))" = "0" ] && printf "[s[$((areay - 1));${areax}H[0m%s[u" " " && return 1 + time_ns=0 + } ;; esac |