Add timer.

Added class timer.