Initial commit
This commit is contained in:
9
stopwatch.sh
Executable file
9
stopwatch.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
start=$(date +%s)
|
||||
|
||||
while true; do
|
||||
time="$(($(date +%s) - $start))"
|
||||
printf '%s\r' "$(date -u -d "@$time" +%H:%M:%S)"
|
||||
sleep 1s;
|
||||
done
|
Reference in New Issue
Block a user