Skip to content

Instantly share code, notes, and snippets.

@FirePanther
Last active November 17, 2016 03:47
Show Gist options
  • Save FirePanther/704cdc113c7f81395944 to your computer and use it in GitHub Desktop.
Save FirePanther/704cdc113c7f81395944 to your computer and use it in GitHub Desktop.
#!/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