Last active
November 17, 2016 03:47
-
-
Save FirePanther/704cdc113c7f81395944 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
i=0 | |
for i in `seq 1 10`; do | |
starttime=`gdate +%s%3N` | |
start=`gdate +%s -r "$HOME/Library/Application Support/Alfred 2/Databases/clipboard.alfdb"` | |
echo `gdate +%s%3N` | pbcopy | |
until [ start != current ]; do | |
current=`gdate +%s -r "$HOME/Library/Application Support/Alfred 2/Databases/clipboard.alfdb"` | |
done | |
endtime=`gdate +%s%3N` | |
diff=$(($endtime - $starttime)) | |
echo "finished: $diff ms" | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment