dotfiles/scripts/timer

19 lines
182 B
Text
Raw Permalink Normal View History

2024-11-30 21:52:04 +01:00
#!/bin/sh
s=0
m=0
h=0
while : ; do
sleep 1s
if [[ $s == 60 ]]; then
m=$((m+1)); s=0
elif [[ $m == 60 ]]; then
h=$((h+1)); m=0
fi
s=$((s+1))
clear
echo "$h:$m:$s"
done