Improve cpu usage of clock alias with sleep
This commit is contained in:
parent
9d7f734d50
commit
83996be539
1 changed files with 1 additions and 0 deletions
|
@ -295,5 +295,6 @@ alias dslr-webcam='pkill -f gphoto2; gphoto2 --stdout --capture-movie | ffmpeg -
|
|||
clock() {
|
||||
while true; do
|
||||
printf '%s\r' "$(date)"
|
||||
sleep 0.1
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue