optimization: moving class Timer -> namespace Timer