added CTimer

I've added the code for the timer, but it's not working well inside the
app. will look at it tomorrow.