Using gyroscope angles for a clock in processing.

Hi guys,

So I'm trying to design in a new "sleep diary" which is used to diagnose and treat insomniacs.
I want to use rotation like a normal clock to set sleep time for example, see sketch attached.

I've bought a 6-DOF board and got good readings from the gyroscope, but now I need to translate that to a clock.

For now, I am not planning on using the display as on the sketch, but get the readings on my laptop screen through processing.
I think the easiest way is to come up with some conversion within arduino, do some mathematics and get a time out of it and then send it over the serial monitor to processing via Bluetooth. I was thinking that maybe the map() function could come in handy here.

Those are my initial thoughts of how I could do it, any suggestions what might work? how I could do it?

Thanks a lot!

Best,
Lester

I would use a knob + rotary encoder to set time.