summaryrefslogtreecommitdiff
path: root/.local/bin/clock
blob: df250b88181d1db01fa9bd2a83eeb2a74bf21054 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

# Display a clock in the terminal with hours, minutes, seconds and
# milliseconds

while : 
do 
    echo -ne "$(date +%T.%3N)\r" 
    sleep .001 
done