Implement a simple Singleton class.
*Replace global ptr by singleton.
*Add an interval timer use example.
*More C++ 11 standard style.

Signed-off-by: Y.Moon <chglove@live.cn>