After a couple weeks of setting up my laptop next to me before bed, I decided that it'd be way better as an Android app, so I wrote it up. Now you too can experience the clicking sensations: Sleep Metronome
Try it out! Leave comments! Make reviews! Share with friends!
I was very impressed with how pleasant the experience of writing an app was. I went from having not touched a single line of Android code to having a published app in the space of 24 hours. A++ would code again.
The code is available at http://android-sleep-metronome.googlecode.com. Patches are welcome!