add a static method to Timer.
some format adjustment to cancel extra warnings provided by g++.