Declaring all arguments of timer implementation as const

This may prevent some nasty bugs in the future.