Add endTime attribute to timer directive.

I have added a new endTime attribute to the timer directive so that one could set the end time and start the timer.

Please review it. If it's ok to be merged, I'll add some test case for this feature.

Thank you.