dotfiles/scripts/speedrun-timer
2022-02-06 19:45:28 +01:00

7 lines
277 B
Bash
Executable file

#!/bin/bash
STARTTIME=$(date +%s.%3N)
echo "End timing with ctrl-c."
while true; do
DUR=$(printf "%.3f" $(bc <<< $(date +%s.%3N)-$STARTTIME))
printf "\r%s " $(date +%T.%3N -u -d "@${DUR}")
done